欢迎来到天天文库
浏览记录
ID:31665099
大小:99.27 KB
页数:15页
时间:2019-01-16
《java双语教学考试试b卷及答案》由会员上传分享,免费在线阅读,更多相关内容在工程资料-天天文库。
1、注意事项:请将各题答案按编号顺序填写到答题卷上,答在试卷上无效。一、单选题(本题共40小题,每小题1分,共40分〉1.Whatisthereturn-typeofthemethodsthatimplementtheMouseListenerinterface?A.booleanB.BooleanC.voidD.Point2.SelectvalididentifierofJava:A.%passwdB.3d_gameC.SchargeD.this3・WhichdeclaresanabstractmethodinanabstractJavaclass?IA.publicabstra
2、ctmethod();B.publicabstractvoidmethod();C.publicvoidabstractMethod(};D.publicabstractvoidmethod(){}4・Whichstatementaboutlisteneristrue?A・Mostcomponentunallowmultiplelistenerstobeadded・B.Ifmultiplelistenerbeaddtoasinglecomponent,theeventonlyaffectedonelistener.C.Componentdon'tallowmultiplelis
3、tenerstobeadd・0
4、PD・ThelistenermechanismallowsyoutocallanaddXxxxListenermethodasmanytimesasisneeded,specifyingasmanydifferentlistenersasyourdesignrequire・Whichmethodyoudefineasthestartingpointofnewthreadinaclassfromwhichnewthethreadcanbeexcution?A.publicvoidstart()B・publicvoidrun()C.publicvoi
5、dint()D.publicstaticvoidmain(Stringargsf])6.Whichstatementiscorrectlydeclareavariableawhichissuitableforreferingtoanarrayof50stringemptyobject?A.String[]aB.StringaC.chara[][]D.Stringa[50]7.WhichcannotbeaddedtoaContainer?A.aMenuB.aComponentC.aContainerD.anApplet8.Whichisthemain()methocPsretur
6、nofaapplication?A.StringB.byteC.charD.voidWhichiscorrectedargumentofmain()methodofapplication?A.StringargsB・Stringar[]Floats=newFloat(0.9F);Floatt=newFloat(0.9F);Doubleu=newDouble(0.9);C.Charargs[][]D.StringBufferargflWhichexpressionsresultistrue?A.s==tB.s.equals(t)C.s==uD.t.equals(u)11.Whic
7、harenotJavakeyword?A.gotoB.nullC.FALSE12・Runacorrectedclass:java-csAClassabcWhichstatementistrue?A.args[0]=''・cs'';B.args[lJ=,,abc";C.args[O[=''java'';13.Shortanswer:Thedecimalvalueofiis12,theoctalivalueis:A.14B.014C.0x1414.Shortanswer:Thedecimalvalueofiis7,thehexadecimalivalueis:A.7B
8、.07C.0x715.Whichistherangeofchar?A.-27-27-lB.0-216-lC.0-21616.Whichstatementistrueaboutaninnerclass?D.constD.args[0y;D.012D.x07D.0~28A.ItmustbeanonymousB.ItcannotimplementaninterfaceC.ItisonlyaccessibleintheenclosingclassD・Itcanaccessanyfinalvariab
此文档下载收益归作者所有