欢迎来到天天文库
浏览记录
ID:50988884
大小:37.83 KB
页数:13页
时间:2020-03-17
《JAVA双语教学考试试卷及答案B.docx》由会员上传分享,免费在线阅读,更多相关内容在教育资源-天天文库。
1、班级学号姓名密封装订线密封装订线密封装订线B卷注意事项:请将各题答案按编号顺序填写到答题卷上,答在试卷上无效。一、单选题(本题共40小题,每小题1分,共40分)1.Whatisthereturn-typeofthemethodsthatimplementtheMouseListenerinterface?A.booleanB.BooleanC.voidD.Point2.SelectvalididentifierofJava:A.%passwdB.3d_gameC.$chargeD.this3.Whi
2、chdeclaresanabstractmethodinanabstractJavaclass?A.publicabstractmethod();B.publicabstractvoidmethod();C.publicvoidabstractMethod(};D.publicabstractvoidmethod(){}4.Whichstatementaboutlisteneristrue?A.Mostcomponentunallowmultiplelistenerstobeadded.B.Ifmu
3、ltiplelistenerbeaddtoasinglecomponent,theeventonlyaffectedonelistener.C.Componentdon’tallowmultiplelistenerstobeadd.D.ThelistenermechanismallowsyoutocallanaddXxxxListenermethodasmanytimesasisneeded,specifyingasmanydifferentlistenersasyourdesignrequire.
4、5.Whichmethodyoudefineasthestartingpointofnewthreadinaclassfromwhichnewthethreadcanbeexcution?A.publicvoidstart()B.publicvoidrun()C.publicvoidint()D.publicstaticvoidmain(Stringargs[])6.Whichstatementiscorrectlydeclareavariableawhichissuitableforreferin
5、gtoanarrayof50stringemptyobject?A.String[]aB.StringaC.chara[][]D.Stringa[50]7.WhichcannotbeaddedtoaContainer?A.aMenuB.aComponentC.aContainerD.anApplet8.Whichisthemain()method’sreturnofaapplication?A.StringB.byteC.charD.void9.Whichiscorrectedargumentofm
6、ain()methodofapplication?A.StringargsB.Stringar[]C.Charargs[][]D.StringBufferarg[]10.Floats=newFloat(0.9F);Floatt=newFloat(0.9F);Doubleu=newDouble(0.9);Whichexpression’sresultistrue?A.s==tB.s.equals(t)C.s==uD.t.equals(u)11.WhicharenotJavakeyword?A.goto
7、B.nullC.FALSED.const1.Runacorrectedclass:java–csAClassabcWhichstatementistrue?A.args[0]=”-cs”;B.args[1]=”abc”;C.args[0]=”java”;D.args[0]=”a”;2.Shortanswer:Thedecimalvalueofiis12,theoctalivalueis:A.14B.014C.0x14D.0123.Shortanswer:Thedecimalvalueo
8、fiis7,thehexadecimalivalueis:A.7B.07C.0x7D.x074.Whichistherangeofchar?A.-27~27-1B.0~216-1C.0~216D.0~285.Whichstatementistrueaboutaninnerclass?A.ItmustbeanonymousB.ItcannotimplementaninterfaceC.ItisonlyaccessibleintheenclosingclassD.Itca
此文档下载收益归作者所有