欢迎来到第一文库网! | 帮助中心 第一文库网-每个人都是第一
第一文库网
全部分类
  • 研究报告>
  • 学术论文>
  • 全科教育>
  • 应用文档>
  • 行业资料>
  • 企业管理>
  • 技术资料>
  • 生活休闲>
  • ImageVerifierCode 换一换
    首页 第一文库网 > 资源分类 > DOCX文档下载
    分享到微信 分享到微博 分享到QQ空间

    java单选题2018年版.docx

    • 资源ID:310686       资源大小:241.36KB        全文页数:35页
    • 资源格式: DOCX        下载积分:3金币
    快捷下载 游客一键下载
    账号登录下载
    微信登录下载
    三方登录下载: QQ登录 微博登录
    二维码
    扫码关注公众号登录
    下载资源需要3金币
    邮箱/手机:
    温馨提示:
    快捷下载时,用户名和密码都是您填写的邮箱或者手机号,方便查询和重复下载(系统自动生成)。
    如填写123,账号就是123,密码也是123。
    支付方式: 支付宝    微信支付   
    验证码:   换一换

    加入VIP,免费下载
     
    账号:
    密码:
    验证码:   换一换
      忘记密码?
        
    友情提示
    2、PDF文件下载后,可能会被浏览器默认打开,此种情况可以点击浏览器菜单,保存网页到桌面,就可以正常下载了。
    3、本站不支持迅雷下载,请使用电脑自带的IE浏览器,或者360浏览器、谷歌浏览器下载即可。
    4、本站资源下载后的文档和图纸-无水印,预览文档经过压缩,下载后原文更清晰。
    5、试题试卷类文档,如果标题没有明确说明有答案则都视为没有答案,请知晓。

    java单选题2018年版.docx

    1. Howmanybytesofstoragearerequiredforanintegeroftype1onginJava?(b)(a) Four(b) Eight(c) Two(d) Three注java中有8种基本类型byte:8位无符号整数Short:16位有符号整数臧廷杰int32位有符号整数IOng:64(8字节)位有符号整数f1oat:32位单精度浮点数doub1e:64位单精度浮点数Char:单个字符使用16位UniCOde编码boo1eanThetwoBoo1ean1itera1savai1ab1einJavaareand.(d)(a) T,F(b) O,1(c) TRUE,FA1SE(d) true,fa1se3.Considerthefo11owing1ineofJavacode.(c)intx=1+7*2;Whatwi11betheva1ueofxattheendofexecutionofthe1ineofcode?J11x)zabedz(x/(x/(xr21161590)0Hgfrmany1inesofoutputwi11beproducedbythefo11owingcodefragment?(inti=O;i<4;+i)for(intj=1;j<3;+j)stdut.print1n(i+j);1171abed/(/(x/(/(101268WhichistheJavakeywordusedtodenoteac1assmethod?(d)(a) c1ass(b) private(c) fina1(d) static6?AccordingtoJavadocconvention,thefirstsentenceofeachJavadoccommentshou1dbe(c)(a) an0authortag(b) theorderof1inesisnotimportant(c) asummarysentenceofthedec1aredentry(d) an©versiontag7.ThecodingsystemusedtorepresentcharactersinJavais(c)(a)bytecode(b) ASCII(c) Unicode(d) EBCDIC8.Whichexpressionnc1usive)?Kx<0IIx0<x<90<=x>=9x>0&&X<f7JZJ×JZabedTJf/(x1xfbe1ow(a)>9)eva1uatestotrueifandon1yifXisintherange0,9.Whichofthefo11owingisava1idintegerconstantdec1aration?(a)<)/V1JXv)z1JZabCd1f/(fina1intSCA1E=10;Jx)zJX)rabed1intfina1SCA1E=10;fina1SCA1E=10;intSCA1E=10;Whichofthefo11owingisava1idcharacter1itera1inJava?(注意字符与字符串的表示)(a)10.)zv)zv)zabCd/(/(zf/(Whichofthefo11owingisnotequiva1entinva1uetothefo11owingexpression?(b)f1ag=fa1sef1ag!=truef1ag!f1ag!(f1ag=true)臧廷杰12.v)xX1JZ1J<abCd¾x/(/(xZ1xWhichofthefo11owingstatementsisusedtoexitfromaswitchstatemen(a)break;end;exit;defau1t;Whichofthefo11owingisnota1ega1identifierinJava?(c)(a) first_index(b) Sfirstindex(c) !indexindex1InJava,whatistheidentifierfortheprimitivetypeusedtorepresentacharacter?(b)JZ111abCd/(x/(xft/(5.CharactercharcharacterCharWhichofthefo11owingisava1id1itera1oftypef1oatinJava?(c)(a) 10.5s(b)10.5fp(c)10.5f(d)10.5d16.Whichofthefo11owingstatementsaboutconstructorsinJavaistrue?(a)(a)Ac1asscandefinemorethanoneconstructor.(b) Ac1assmustdefineat1eastoneconstructor.(c) Aconstructormustbedefinedaspub1ic.(d) Aconstructormustbedefinedasstatic.17.Accordingtothedocumententit1edCodeConventionsfortheJavaProgramming1anguage,fi1esuffixesusedbyJavasoftwareinc1udewhichofthefo11owing?(b)1. .objI1.c1assII1.h(a) IandIIon1y(b) IIon1y(c) IIandIIIon1y(d) IandIIIon1y18. Astacktraceis(c)臧廷杰(a) a1istofvariab1esa11ocatedonaprogram,sstack(b) afata1errorthatcausesatypica1debuggertoterminate(c) asequenceofmethodca11s(d) on1yavaiIab1ethroughatypica1debugger*sstepintofeature注堆栈轨迹:如果你需要打印出某个时间的调用堆栈状态你将产生一个堆栈轨迹。stacktrace中包括三部分分别为.bss.text.databss表示程序中未初始化的全局变量的一块内存区域text表示程序中已初始化的全局变量的一块内存区域data表示存放程序执行代码的一块内存区域19. WhichmethodmustexistineveryJavaapp1ication?(a) begin(b) paint(c) init(d) mainCorrectansweris(d)20. AJavaidentifiermaybeginwitha11butwhichofthefo11owing?(a) $(b) if(c) _(theunderscore)(d) 0Correctansweris(d)21. InthecontextofJavaprogramming,garbageco11ectionrefersto(a) automaticba1ancingofparenthesisperformedbysomeeditors(b) remova1ofJavaprogramsthatcou1dcausedamagetoasystem(c) conversionofcommentsintoJavadoccomments(d) automaticreturnofmemorytotheheapforobjectsno1ongerrequiredbytheprogramCorrectansweris(d)22. Whatwi11beoutputwhenthefo11owingJavaprogramsegmentisexecuted?intx=5;inty=2;System,out.print1n(x+y);7x)/)/JabCdtv<rt<5+252752Correctansweris(c)23.Whichofthefo11owingpartsofanif-e1se-statementisoptiona1?(a) theifpart(b) thee1separt(c) theparenthesisaroundthecondition(d) theconditionCorrectansweris(b)24. Whichofthefo11owingistheJava1oopconstructtypica11yusedwhentherangeisc1ear?(a) whiIe-Ioop(b) for-1oop(c) switch-1oop(d) do-whiIe-1oopCorrectansweris(b)25. Considerthefo11owingJavaprogramsegment.importjava.io.*;pub1icc1assTestpub1icTest()System.out.Print1n("defau1t");)pub1icTest(inti)System,out.PrintIn("non-defau1t");pub1icstaticvoidmain(String1Jargs)(Testt=newTest(2);)Whichofthefo11owingwi11beoutputduringexecutionoftheprogramsegment?(a)(c)(d)TheTheTheThe1ineof1ineof1ineof1ineoftexttexttexttext“non-defau1t"fo11owedbythe1ineoftext“defau1t”“defau1t"fo11owedbythe1ineoftext"non-defau1t”“defau1t”“non-defau1t”Correct26. Whatansweris(d)isthenameoftheJDKprogramthatprocessesJavadoccomments?(a)java(b)javac(c)javacom(d)javadocCorrectansweris(d)27. AccordingtotheJavacodeconventions,fi1es1ongerthan1inesshou1dbe(a)(b)(c)(d)100,encouraged100,avoided2000,avoided2000,encouragedCorrectansweris(c)28. Theprimitivef1oating-pointtypesavai1ab1einJavaareand(a)(b)(c)(d)rea1,doub1ef1oat,doub1erea1,f1oatsing1e,rea1Correctansweris(b)29. Howmanybytesare

    注意事项

    本文(java单选题2018年版.docx)为本站会员(lao****ou)主动上传,第一文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对上载内容本身不做任何修改或编辑。 若此文所含内容侵犯了您的版权或隐私,请立即通知第一文库网(点击联系客服),我们立即给予删除!

    温馨提示:如果因为网速或其他原因下载失败请重新下载,重复下载不扣分。




    关于我们 - 网站声明 - 网站地图 - 资源地图 - 友情链接 - 网站客服 - 联系我们

    copyright@ 2008-2022 001doc.com网站版权所有   

    经营许可证编号:宁ICP备2022001085号

    本站为文档C2C交易模式,即用户上传的文档直接被用户下载,本站只是中间服务平台,本站所有文档下载所得的收益归上传人(含作者)所有,必要时第一文库网拥有上传用户文档的转载和下载权。第一文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对上载内容本身不做任何修改或编辑。若文档所含内容侵犯了您的版权或隐私,请立即通知第一文库网,我们立即给予删除!



    收起
    展开