欢迎来到天天文库
浏览记录
ID:243481
大小:93.48 KB
页数:14页
时间:2017-07-13
《JAVA双语教学考试试B卷及答案》由会员上传分享,免费在线阅读,更多相关内容在教育资源-天天文库。
1、班级学号姓名密封装订线密封装订线密封装订线B卷注意事项:请将各题答案按编号顺序填写到答题卷上,答在试卷上无效。一、单选题(本题共40小题,每小题1分,共40分)1.Whatisthereturn-typeofthemethodsthatimplementtheMouseListenerinterface?A.booleanB.BooleanC.voidD.Point2.SelectvalididentifierofJava:A.%passwdB.3d_gameC.$chargeD.this3.Whichdeclaresanabstractmethodinanabs
2、tractJavaclass?A.publicabstractmethod();B.publicabstractvoidmethod();C.publicvoidabstractMethod(};D.publicabstractvoidmethod(){}4.Whichstatementaboutlisteneristrue?A.Mostcomponentunallowmultiplelistenerstobeadded.B.Ifmultiplelistenerbeaddtoasinglecomponent,theeventonlyaffectedoneliste
3、ner.C.Componentdon’tallowmultiplelistenerstobeadd.D.ThelistenermechanismallowsyoutocallanaddXxxxListenermethodasmanytimesasisneeded,specifyingasmanydifferentlistenersasyourdesignrequire.5.Whichmethodyoudefineasthestartingpointofnewthreadinaclassfromwhichnewthethreadcanbeexcution?A.pub
4、licvoidstart()B.publicvoidrun()C.publicvoidint()D.publicstaticvoidmain(Stringargs[])6.Whichstatementiscorrectlydeclareavariableawhichissuitableforreferingtoanarrayof50stringemptyobject?A.String[]aB.StringaC.chara[][]D.Stringa[50]7.WhichcannotbeaddedtoaContainer?A.aMenuB.aComponentC.aC
5、ontainerD.anApplet8.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);Whichexpressi
6、on’sresultistrue?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:Thedecimalvalue
7、ofiis12,theoctalivalueis: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.Itisonlyaccessibl
8、einth
此文档下载收益归作者所有