欢迎来到天天文库
浏览记录
ID:14800729
大小:46.20 KB
页数:14页
时间:2018-07-30
《java双语教学考试试卷及答案b》由会员上传分享,免费在线阅读,更多相关内容在教育资源-天天文库。
1、班级学号姓名密封装订线密封装订线密封装订线B卷注意事项:请将各题答案按编号顺序填写到答题卷上,答在试卷上无效。一、单选题(本题共40小题,每小题1分,共40分)1.Whatisthereturn-typeofthemethodsthatimplementtheMouseListenerinterface?A.booleanB.BooleanC.voidD.Point2.SelectvalididentifierofJava:A.%passwdB.3d_gameC.$chargeD.this3.Whichdeclaresanabstractmethodinanabstra
2、ctJavaclass?A.publicabstractmethod();B.publicabstractvoidmethod();C.publicvoidabstractMethod(};D.publicabstractvoidmethod(){}4.Whichstatementaboutlisteneristrue?A.Mostcomponentunallowmultiplelistenerstobeadded.B.Ifmultiplelistenerbeaddtoasinglecomponent,theeventonlyaffectedonelistener.C.
3、Componentdon’tallowmultiplelistenerstobeadd.D.ThelistenermechanismallowsyoutocallanaddXxxxListenermethodasmanytimesasisneeded,specifyingasmanydifferentlistenersasyourdesignrequire.5.Whichmethodyoudefineasthestartingpointofnewthreadinaclassfromwhichnewthethreadcanbeexcution?A.publicvoidst
4、art()B.publicvoidrun()C.publicvoidint()D.publicstaticvoidmain(Stringargs[])6.Whichstatementiscorrectlydeclareavariableawhichissuitableforreferingtoanarrayof50stringemptyobject?A.String[]aB.StringaC.chara[][]D.Stringa[50]7.WhichcannotbeaddedtoaContainer?A.aMenuB.aComponentC.aContainerD.an
5、Applet8.Whichisthemain()method’sreturnofaapplication?A.StringB.byteC.charD.void9.Whichiscorrectedargumentofmain()methodofapplication?A.StringargsB.Stringar[]C.Charargs[][]D.StringBufferarg[]10.Floats=newFloat(0.9F);Floatt=newFloat(0.9F);Doubleu=newDouble(0.9);Whichexpression’sresultistru
6、e?A.s==tB.s.equals(t)C.s==uD.t.equals(u)面向对象程序设计(JAVA)第14页共14页1.WhicharenotJavakeyword?A.gotoB.nullC.FALSED.const2.Runacorrectedclass:java–csAClassabcWhichstatementistrue?A.args[0]=”-cs”;B.args[1]=”abc”;C.args[0]=”java”;D.args[0]=”a”;3.Shortanswer:Thedecimalvalueofiis12,theoctaliv
7、alueis:A.14B.014C.0x14D.0124.Shortanswer:Thedecimalvalueofiis7,thehexadecimalivalueis:A.7B.07C.0x7D.x075.Whichistherangeofchar?A.-27~27-1B.0~216-1C.0~216D.0~286.Whichstatementistrueaboutaninnerclass?A.ItmustbeanonymousB.ItcannotimplementaninterfaceC.Itisonlyaccessibleinth
此文档下载收益归作者所有