[editgroups]user@hostshownode0{system{host-nameNODE0;}interfaces{fxp0{unit0{familyinet{address1.1.1.1/24;}}}}}node1{system{host-nameNODE1;}interfaces{fxp0{unit0{familyinet{address1.1.1.2/24;}}}}}Intheexhibit,whatisthefunctionoftheconfigurationstatements?()
A.Thissectioniswhereyoudefineallchassisclusteringconfiguration.
B.Thisconfigurationisrequiredformembersofachassisclustertotalktoeachother.
C.Youcanapplythisconfigurationinthechassisclustertomakeconfigurationeasier.
D.Thissectioniswhereuniquenodeconfigurationisapplied.
第1题:
importjava.util.*;
classKeyMaster{
publicinti;
publicKeyMaster(inti){this.i=i;}
publicbooleanequals(Objecto){returni==((KeyMaster)o).i;}
publicinthashCode(){returni;}
}
publicclassMapIt{
publicstaticvoidmain(String[]args){
Setset=newHashSet();
KeyMasterk1=newKeyMaster(1);
KeyMasterk2=newKeyMaster(2);
set.add(k1);set.add(k1);
set.add(k2);set.add(k2);
System.out.print(set.size()+:”);
k2.i=1;
System.out.print(set.size()+:”);
set.remove(k1);
System.out.print(set.size()+:”);
set.remove(k2);
System.out.print(set.size());
}
}
Whatistheresult?()
第2题:
A.family ip
B.family ip6
C.family inet
D.family inet4
第3题:
Studytheexhibitshownbelowcarefully.InthisscenariotheserviceproviderwantstoensurethatswitchS1istherootswitchforitsownnetworkandthenetworkof.Onwhichinterfacesshouldrootguardbeconfiguredtoensurethatthishappens?()
A.Interfaces11and12
B.Interfaces1,2,3,and4
C.Interfaces5and6
D.Interfaces5,6,7,and8
E.Interfaces1and2
F.Interfaces1,3,5,and6
第4题:
A.for(inti=0;i<a.size();i++) System.out.println(a.get(i)));
B.for(inti=0;i<a.size();i++) System.out.println(a[i]);
C.while(iter.hasNext()) System.out.println(iter.next());
D.for(inti=0,i<a.size();i++) System.out.println(iter[i]);
E.for(inti=0;i<a.size();i++) System.out.println(iter.get(i));
第5题:
分析如下Java代码,编译运行后将输出( )。
publicclassTest{
publicTest(){}
staticvoidprint(ArrayListal){
al.add(2);
al=newArrayList();
al.add(3);
al.add(4);
}
publicstaticvoidmain(String[]args){
Testtest=newTest();
ArrayListal=newArrayList();
al.add(1);
print(al);
System.out.println(al.get(1));
}
}
A、1
B、2
C、3
D、4