SSD3 选择题题库完整.doc

SSD3 选择题题库完整.doc

ID:58875438

大小:47.00 KB

页数:11页

时间:2020-09-21

SSD3 选择题题库完整.doc_第1页
SSD3 选择题题库完整.doc_第2页
SSD3 选择题题库完整.doc_第3页
SSD3 选择题题库完整.doc_第4页
SSD3 选择题题库完整.doc_第5页
资源描述:

《SSD3 选择题题库完整.doc》由会员上传分享,免费在线阅读,更多相关内容在行业资料-天天文库

1、..SSD3选择题题库1.WhichmethodmustexistineveryJavaapplication?(a)begin(b)paint(c)init(d)mainCorrectansweris(d)窗体顶端2.WhichofthefollowingisavalidcharacterliteralinJava?(a)';'(b)'<='(c)"'"(d)"a"Correctanswer:A窗体底端2.AJavaidentifiermaybeginwithallbutwhichofthefollowing?(a)$(

2、b)if(c)_(theunderscore)(d)0Correctansweris(d)3.InthecontextofJavaprogramming,garbagecollectionrefersto(a)automaticbalancingofparenthesisperformedbysomeeditors(b)removalofJavaprogramsthatcouldcausedamagetoasystem(c)conversionofcommentsintoJavadoccomments(d)automati

3、creturnofmemorytotheheapforobjectsnolongerrequiredbytheprogramCorrectansweris(d)4.WhatwillbeoutputwhenthefollowingJavaprogramsegmentisexecuted?intx=5;inty=2;System.out.println(x+y);(a)5+2(b)52(c)7(d)52Correctansweris(c)5.Whichofthefollowingpartsofanif-else-stateme

4、ntisoptional?(a)theifpart.....(b)theelsepart(c)theparenthesisaroundthecondition(d)theconditionCorrectansweris(b)6.WhichofthefollowingistheJavaloopconstructtypicallyusedwhentherangeisclear?(a)while-loop(b)for-loop(c)switch-loop(d)do-while-loopCorrectansweris(b)8.Co

5、nsiderthefollowingJavaprogramsegment.importjava.io.*;publicclassTest{publicTest(){System.out.println("default");}publicTest(inti){System.out.println("non-default");}publicstaticvoidmain(String[]args){Testt=newTest(2);}}Whichofthefollowingwillbeoutputduringexecutio

6、noftheprogramsegment?(a)Thelineoftext"non-default"followedbythelineoftext"default"(b)Thelineoftext"default"followedbythelineoftext"non-default"(c)Thelineoftext"default"(d)Thelineoftext"non-default"Correctansweris(d)9.WhatisthenameoftheJDKprogramthatprocessesJavado

7、ccomments?(a)java(b)javac.....(c)javacom(d)javadocCorrectansweris(d)10.AccordingtotheJavacodeconventions,fileslongerthan_____linesshouldbe_____.(a)100,encouraged(b)100,avoided(c)2000,avoided(d)2000,encouragedCorrectansweris(c)2.Theprimitivefloating-pointtypesavail

8、ableinJavaare_____and_____.(a)real,double(b)float,double(c)real,float(d)single,realCorrectansweris(b)3.HowmanybytesarerequiredtorepresentaUnicodecharact

当前文档最多预览五页,下载文档查看全文

此文档下载收益归作者所有

当前文档最多预览五页,下载文档查看全文
温馨提示:
1. 部分包含数学公式或PPT动画的文件,查看预览时可能会显示错乱或异常,文件下载后无此问题,请放心下载。
2. 本文档由用户上传,版权归属用户,天天文库负责整理代发布。如果您对本文档版权有争议请及时联系客服。
3. 下载前请仔细阅读文档内容,确认文档内容符合您的需求后进行下载,若出现内容与标题不符可向本站投诉处理。
4. 下载文档时可能由于网络波动等原因无法下载或下载错误,付费完成后未能成功下载的用户请联系客服处理。