欢迎来到天天文库
浏览记录
ID:9225739
大小:134.90 KB
页数:14页
时间:2018-04-23
《《面向对象程序设计(JAVA) 》英汉双语教学考试试卷B及答案》由会员上传分享,免费在线阅读,更多相关内容在教育资源-天天文库。
1、班级学号姓名密封装订线密封装订线密封装订线B卷注意事项:请将各题答案按编号顺序填写到答题卷上,答在试卷上无效。一、单选题(本题共40小题,每小题1分,共40分)1.Whatisthereturn-typeofthemethodsthatimplementtheMouseListenerinterface?A.booleanB.BooleanC.voidD.Point2.SelectvalididentifierofJava:A.%passwdB.3d_gameC.$chargeD.this3.Whichde
2、claresanabstractmethodinanabstractJavaclass?A.publicabstractmethod();B.publicabstractvoidmethod();C.publicvoidabstractMethod(};D.publicabstractvoidmethod(){}4.Whichstatementaboutlisteneristrue?A.Mostcomponentunallowmultiplelistenerstobeadded.B.Ifmultipleli
3、stenerbeaddtoasinglecomponent,theeventonlyaffectedonelistener.C.Componentdon’tallowmultiplelistenerstobeadd.D.ThelistenermechanismallowsyoutocallanaddXxxxListenermethodasmanytimesasisneeded,specifyingasmanydifferentlistenersasyourdesignrequire.5.Whichmetho
4、dyoudefineasthestartingpointofnewthreadinaclassfromwhichnewthethreadcanbeexcution?A.publicvoidstart()B.publicvoidrun()C.publicvoidint()D.publicstaticvoidmain(Stringargs[])6.Whichstatementiscorrectlydeclareavariableawhichissuitableforreferingtoanarrayof50st
5、ringemptyobject?A.String[]aB.StringaC.chara[][]D.Stringa[50]7.WhichcannotbeaddedtoaContainer?A.aMenuB.aComponentC.aContainerD.anApplet8.Whichisthemain()method’sreturnofaapplication?A.StringB.byteC.charD.void9.Whichiscorrectedargumentofmain()methodofapplica
6、tion?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.gotoB.nullC.FALSED.const面向对象
7、程序设计(JAVA)第14页共14页1.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:Thedecimalvalueofiis7,
8、thehexadecimalivalueis:A.7B.07C.0x7D.x074.Whichistherangeofchar?A.-27~27-1B.0~216-1C.0~216D.0~285.Whichstatementistrueaboutaninnerclass?A.ItmustbeanonymousB.ItcannotimplementaninterfaceC.Itisonlyaccessibleint
此文档下载收益归作者所有