您好,欢迎访问三七文档
当前位置:首页 > 商业/管理/HR > 公司方案 > Java程序员应聘编程能力测试(英文版)
JavaCertificationMockExamJohnHuntEmail:jjh@aber.ac.ukURL://~jjh/JavaAswithanyexaminationtechniqueisanimportantaspectoftheexaminationprocess.Inmostsituationstherearemockexaminationsthatyoucanusetoobtainexperience.ThisistheintentionofthisJavaCertificationMockExam.ThismockexamissolelyintendedtohelpthoseintendingtotakeSun’sCertifiedJavaProgrammer1.1.examinationpracticethestyleofquestionsusedintheexamination.ItshouldnotbeusedasawayoflearningJavanorshoulditbetreatedasaformofrevision.Notesomecarehasbeentakentoensurethatthestyleofquestionsarethesameasthoseintheactualexam,butthatnoquestionsfromtheexaminationareactuallyincluded.ThestyleisbasedononepersonsexperienceoftakingtheJavaCertificationexaminationanditshouldthereforenotbeassumedthatthismockexamisanexactreflectionoftheactualexam.Thismockexaminationconsistsof65questions(theactualexamconsistsof60questions).Justasintheactualexaminationamixtureofstyleofquestionsareincluded.Theserangebetweenquestionsthatrequireasingleanswerandthosethatrequire1ormoreanswers.Theformerareindicatedby:Selectthemostappropriateanswer.JavaCertificationMockExam1/36Thelatterby:Selectallcorrectanswers.Noteaquestionthathastheaboverequestmayrequireonlyoneoption,itisforyoutodecide.However,ifyoudonotidentifyalltheoptionsforthatquestion,thenyouwillscorezeroforthatquestion.Onefreeformatquestionisincludedasanexampleofthatstyleofquestioning.AsintheactualexamyoushouldnotattempttoidentifyanytrendsrelatingtoAs,BsorCs.Thatis,donotassumethatbecausetheanswerAhasnotappearedforawhilethereisagoodchancethatitwillsoon.Fortheactualexaminationthepassmarkis70%youshouldthereforeaimtoachieveatleast46correctanswersinthismockexamination.Thecorrectanswersaregiveattheendoftheexamination.Disclaimer:ThismockexaminationisinnowaysanctionedbySunMicrosystemsandnoguaranteesareprovidedaboutthesimilarityofthesequestionstothoseintheactualexam.Q.1Whichcolourisusedtoindicateinstancemethodsinthestandardjavadocformatdocumentation:A.blueB.redC.purpleD.orangeJavaCertificationMockExam2/36Selectthemostappropriateanswer.Q.2Whatisthecorrectorderingfortheimport,classandpackagedeclarationswhenfoundinasinglefile?A.package,import,classB.class,import,packageC.import,package,classD.package,class,importSelectthemostappropriateanswer.Q.3Whichmethodscanbelegallyappliedtoastringobject?A.equals(String)B.equals(Object)C.trim()D.round()E.toString()Selectallcorrectanswers.Q.4Whatistheparameterspecificationforthepublicstaticvoidmainmethod?A.Stringargs[]B.String[]argsC.Stringsargs[]D.StringargsSelectallcorrectanswers.Q.5WhatdoesthezerothelementofthestringarraypassedtothepublicstaticvoidmainJavaCertificationMockExam3/36methodcontain?A.ThenameoftheprogramB.ThenumberofargumentsC.ThefirstargumentifoneispresentSelectthemostappropriateanswer.Q.6WhichofthefollowingareJavakeywords?A.gotoB.mallocC.extendsD.FALSESelectallcorrectanswersQ.7Whatwillbetheresultofcompilingthefollowingcode:publicclassTest{publicstaticvoidmain(Stringargs[]){intage;age=age+1;System.out.println(Theageis+age);}}A.CompilesandrunswithnooutputB.CompilesandrunsprintingoutTheageis1C.CompilesbutgeneratesaruntimeerrorJavaCertificationMockExam4/36D.DoesnotcompileE.CompilesbutgeneratesacompiletimeerrorSelectthemostappropriateanswer.Q.8Whichoftheseisthecorrectformattousetocreatetheliteralcharvaluea?A.‘a’B.aC.newCharacter(a)D.\000aSelectthemostappropriateanswer.Q.9Whatisthelegalrangeofabyteintegraltype?A.0-65,535B.(–128)–127C.(–32,768)–32,767D.(–256)–255Selectthemostappropriateanswer.Q.10Whichofthefollowingisillegal:A.inti=32;B.floatf=45.0;C.doubled=45.0;Selectthemostappropriateanswer.Q.11Whatwillbetheresultofcompilingthefollowingcode:JavaCertificationMockExam5/36publicclassTest{staticintage;publicstaticvoidmain(Stringargs[]){age=age+1;System.out.println(Theageis+age);}}A.CompilesandrunswithnooutputB.CompilesandrunsprintingoutTheageis1C.CompilesbutgeneratesaruntimeerrorD.DoesnotcompileE.CompilesbutgeneratesacompiletimeerrorSelectthemostappropriateanswer.Q.12Whichofthefollowingarecorrect?A.1281gives64B.1281gives64C.1281gives–64D.1281gives–64SelectallcorrectanswersQ.13Whichofthefollowingreturntrue?A.john==johnB.john.equals(john)C.john=johnJavaCertificationMockExam6/36D.john.equals(newButton(john))Selectallcorrectanswers.Q.14Whichofthefollowingdonotleadtoaruntimeerror?A.john+was+hereB.john+3C.3+5D.5+5.5Selectallcorrectanswers.Q.15Whichofthefollowingaresocalledshortcircuitlogicaloperators?A.&B.||C.&&D.|Selectallcorrectanswers.Q.16Whichofthefollowingareacceptable?A.Objecto=newButton(A);B.Booleanflag=true;C.Panelp=newFrame();D.Framef=newPanel();E.Panelp=newApplet();Selectallcorrectanswers.Q.17JavaCertificationMockExam7/36Whatistheresultofcompilingandrunningthefollowingcode:publicclassTest{staticinttotal=10;publicstaticvoidmain(Stringargs[]){newTest();}publicTest(){System.out.println(Intest);System.out.println(this);inttemp=this.total;if(temp5){System.out.println(temp);}}}A.TheclasswillnotcompileB.Thecompilerreportsanderroratline2C.Thecompilerreportsanerroratline9D.Thevalue10isoneo
本文标题:Java程序员应聘编程能力测试(英文版)
链接地址:https://www.777doc.com/doc-3550492 .html