欢迎来到天天文库
浏览记录
ID:50896934
大小:43.70 KB
页数:14页
时间:2020-03-15
《金蝶中间件2011校招笔试题.doc》由会员上传分享,免费在线阅读,更多相关内容在教育资源-天天文库。
1、一、单选题(18分,每小题个2分)1.关于软件测试的目的,下面观点错误的是()A、未来发现错误而执行程序的过程B、一个好的测试用例能够发现至今尚未发现的错误C、证明程序是正确、没有错误的D、一个成功的测试用例是发现了至今尚未发现的错误的测试2.Given:Integeri=newInteger(42);Longl=newLong(42);Doubled=newDouble(42.0);WhichexpressionevaluatestoTrue?A.(i==l)B.(i==d)C.(d==1)D.(i.equals(d))E.(d.equals(l))F.(i.equals
2、(l))G.(l.equals(42L))3.Whathappenswhenyoutrytocompileandrunthefollowingapplication?ChooseallCorrectoptions.1.publicclassZ{2.publicstaticvoidmain(String[]args){3.newZ();4.}5.6.Z(){7.Zalias1=this;8.Zalias2=this;9.synchronized(alias1){10.try{11.alias2.wait();12.System.out.println("DONEWAITING
3、");13.}14.catch(InterruptedExceptione){15.System.out.println("INTERRUPTED");16.}17.catch(Exceptione){18.System.out.println("OTHEREXCEPTION");19.}20.finally{21.System.out.println("FINALLY");22.}23.}24.System.out.println("ALLDONE");25.}26.}A.Theapplicationcompilesandprints“DONEWAITING”B.Thea
4、pplicationcompilesbutdoesn’tprintanythingC.Theapplicationcompilesandprint“FINALLY”D.Theapplicationcompilesandprint“ALLDONE”E.Theapplicationcompilesandprint“INTERRUPTED”F.Theapplicationcompilesandprint“DONEWAITING”and“FINALLY”4.Considerthefollowingclasses:1.classPerson{2.publicvoidprintValu
5、e(inti,intj){/*.....*/}3.publicvoidprintValue(inti){/*....*/}4.}5.publicclassTeacherextendsPerson{6.publicvoidprintValue(){/*...*/}7.publicvoidprintValue(inti){/*...*/}8.publicvoidprintValue(Stringi){/*...*/}9.publicstaticvoidmain(Stringargs[]){10.Persont=newTeacher();11.charch='y';12.t.pr
6、intValue(ch);13.}14.}Whichofthestatementsbelowistrue?A.Line7willnotcompile,becausevoidmethodscannotbeoverriddenB.Line12willnotcompile,becausethereisnoversionofprintValue()thattakesacharargumentC.Thecodewillcompilebutwillthrowanexceptionatline12atruntimeD.Thestatementonline12willinvoketheme
7、thodonline8E.Thestatementonline12willinvokethemethodonline2F.Thestatementonline12willinvokethemethodonline3G.Thestatementonline12willinvokethemethodonline75.Considerthefollowingstatement,chooseallcorrectoptionsYouaregivenaclasshierarchywithaninstanceoftheClass
此文档下载收益归作者所有