未知题型

A.处理器
B.内存条
C.处理输入输出的芯片
D.一些扩展槽
【参考答案】

A,B,C,D

相关考题

未知题型 计算机可分为通用计算机和专用计算机,这是按()进行分类.

未知题型 下列4项描述中,是文件属性的是().

未知题型 关于计算机病毒,下面哪一个说法是正确的().

单项选择题 金融信息系统安全风险的科技特性不包括()

单项选择题 以下哪些不属于ATM的功能()

单项选择题 ()是指经济行为人之间由于商品交换和劳务关系所引起的债权、债务关系的清偿。

单项选择题 intx=10;do{x--;}while(x<10);Howmanytimeswillline37beexecuted?()

单项选择题 Floatpi=newFloat(3.14f);if(pi>3){System.out.print(”piisbiggerthan3.);}else{System.out.print(”piisnotbiggerthan3.);}finally{System.out.println(”Haveaniceday.”);}Whatistheresult?()

判断题 电源线布放验收标准中,电源线的敷设路由及截面应符合设计规定。直流电源线、交流电源线、信号、控制线宜分开敷设,避免绑在同一线束内。()

单项选择题 11.classa{12.publicvoidprocess(){System.out.print(”a,”);}}13.classbextendsa{14.publicvoidprocess()throwsIOException{15.super.process();16.System.out.print(”b,”);17.thrownewIOException();18.}}19.publicstaticvoidmain(String[]args){20.try{newb().process();}21.catch(IOExceptione){System.out.println(”Exception”);}}Whatistheresult?()A.ExceptionB.a,b,ExceptionC.Compilationfailsbecauseofanerrorinline20.D.Compilationfailsbecauseofanerrorinline14.E.ANullPointerExceptionisthrownatruntime.

单项选择题 publicclassAssertStuff{publicstaticvoidmain(String[]args){intx=5;inty=7;assert(x>y):stuff”;System.out.println(”passed”);}}Andthesecommandlineinvocations:javaAssertStuffjava-eaAssertStuffWhatistheresult?()A.passedstuffB.stuffpassedC.passed AnAssertionErroristhrownwiththeword“stuff”addedtothestacktrace.D.passed AnAssertionErroristhrownwithouttheword“stuff”addedtothestacktrace.E.passed AnAssertionExceptionisthrownwiththeword“stuff”addedtothestacktrace.F.passed AnAssertionExceptionisthrownwithouttheword“stuff”addedtothestacktrace.

单项选择题 23.intz=5;24.25.publicvoidstuff1(intx){26.assert(x>0);27.switch(x){28.case2:x=3;29.default:assertfalse;}}30.31.privatevoidstuff2(inty){assert(y<0);}32.33.privatevoidstuff3(){assert(stuff4O);}34.35.privatebooleanstuff4(){z=6;returnfalse;}Whichistrue?()A.Alloftheassertstatementsareusedappropriately.B.Onlytheassertstatementonline31isusedappropriately.C.Theassertstatementsonlines29and31areusedappropriately.D.Theassertstatementsonlines26and29areusedappropriately.E.Theassertstatementsonlines29and33areusedappropriately.F.Theassertstatementsonlines29,31,and33areusedappropriately.G.Theassertstatementsonlines26,29,and31areusedappropriately.

单项选择题 11.publicstaticvoidmain(String[]args){12.Integeri=uewInteger(1)+newInteger(2);13.switch(i){14.case3:System.out.println(”three”);break;15.default:System.out.println(”other”);break;16.}17.}Whatistheresult?()A.threeB.otherC.Anexceptionisthrownatruntime.D.Compilationfailsbecauseofanerroronline12.E.Compilationfailsbecauseofanerroronline13.F.Compilationfailsbecauseofanerroronline15.

单项选择题 10.classLine{11.publicclassPoint{publicintx,y;}12.publicPointgetPoint(){returnnewPoint();}13.}14.classTriangle{15.publicTriangle(){16.//insertcodehere17.}18.}Whichcode,insertedatline16,correctlyretrievesalocalinstanceofaPointobject?()A.Pointp=Line.getPoint();B.Line.Pointp=Line.getPoint();C.Pointp=(newLine()).getPoint();D.Line.Pointp=(newLine()).getPoint();

单项选择题 publicclassTest{publicenumDogs{collie,harrier};publicstaticvoidmain(String[]args){DogsmyDog=Dogs.collie;switch(myDog){casecollie:System.out.print(”collie);caseharrier:System.out.print(”harrier);}}}Whatistheresult?()A.collieB.harrierC.Compilationfails.D.collieharrierE.Anexceptionisthrownatruntime.

单项选择题 publicclassPlant{privateStringname;publicPlant(Stringname){this.name=name;}publicStringgetName(){returnname;}}publicclassTreeextendsPlant{publicvoidgrowFruit(){}publicvoiddropLeaves(){}}Whichistrue?()

单项选择题 publicclassTest{publicenumDogs{collie,harrier,shepherd};publicstaticvoidmain(String[]args){DogsmyDog=Dogs.shepherd;switch(myDog){casecollie:System.out.print(”collie);casedefault:System.out.print(”retriever);caseharrier:System.out.print(”harrier);}}}Whatistheresult?()A.harrierB.shepherdC.retrieverD.Compilationfails.E.retrieverharrierF.Anexceptionisthrownatruntime.

单项选择题 publicclassBootchy{intbootch;Stringsnootch;publicBootchy(){this(”snootchy”);System.out.print(”first);}publicBootchy(Stringsnootch){this(420,snootchy”);System.out.print(”second);}publicBootchy(intbootch,Stringsnootch){this.bootch=bootch;this.snootch=snootch;System.out.print(”third);}publicstaticvoidmain(String[]args){Bootchyb=newBootchy();System.out.print(b.snootch++b.bootch);}}Whatistheresult?()A.snootchy420thirdsecondfirstB.snootchy420firstsecondthirdC.firstsecondthirdsnootchy420D.thirdsecondfirstsiiootchy420E.thirdfirstsecondsnootchy420F.firstsecondfirstthirdsnootchy420

单项选择题 Whencomparingjava.io.BufferedWritertojava.io.FileWriter,whichcapabilityexistsasamethodinonlyoneofthetwo?()

单项选择题 importjava.io.*;publicclassForestimplementsSerializable{privateTreetree=newTree();publicstaticvoidmain(String[]args){Forestf=newForest();try{FileOutputStreamfs=newFileOutputStream(”Forest.ser”);ObjectOutputStreamos=newObjectOutputStream(fs);os.writeObject(f);os.close();}catch(Exceptionex){ex.printStackTrace();}}}classTree{}Whatistheresult?()A.Compilationfails.B.Anexceptionisthrownatruntime.C.AninstanceofForestisserialized.D.AinstanceofForestandaninstanceofTreearebothserialized.