电脑桌面
添加蜗牛文库到电脑桌面
安装后可以在桌面快捷访问

结业考试20060601.docVIP免费

结业考试20060601.doc_第1页
结业考试20060601.doc_第2页
结业考试20060601.doc_第3页
Java结业测试题考试时间:180分钟姓名:________________选择题:(每题1分,共50分)1.Giventhefollowingcode:classTest{privateintm;publicstaticvoidfun(){//somecode...}}Howcanthemembervariablembeaccessibledirectlyinthemethodfun()?A.changeprivateintmtoprotectedintmB.changeprivateintmtopublicintmC.changeprivateintmtostaticintmD.changeprivateintmtointm2.Whichmethodsarecorrectoverloadingmethodsofthefollowingmethod:publicvoidexample(){...}A.publicvoidexample(intm){...}B.publicintexample(){...}C.publicvoidexample2(){...}D.publicintexample(intm,floatf){...}3.Giventhefollowingfragmentofcode:publicclassBase{intw,x,y,z;publicBase(inta,intb){x=a;y=b;}publicBase(inta,intb,intc,intd){//assignmentx=a,y=bw=d;z=c;}}Whichexpressionscanbeusedatthepointof//assignmentx=a,y=b?A.Base(a,b);B.x=a,y=b;C.x=a;y=b;D.this(a,b);4.Giventhefollowingdefinition:Strings="story";Whichofthefollowingexpressionsarelegal?A.s+="books";B.charc=s[1];C.intlen=s.length;D.Stringt=s.toLowerCase();5.Whatisthereturnvalueofthemain()methodinJava?A.StringB.intC.charD.void6.WhicharethevalididentifiersinJava?A.fieldnameB.superC.3numberD.#numberE.$number7.WhicharevalidJavakeywords?A.constB.NULLC.falseD.thisE.native8.WhicharevalidintegralexpressionsinJava?A.22B.0x22C.022D.22H9.Giventhefollowingfragmentofcode,whatareresultsofiandjafterexecution?inti=1;intj;j=i++;A.1,1B.1,2C.2,1D.2,210.Whichofthefollowingstatementsaretrue?A.>>isthearithmeticrightshiftoperator.B.>>isthelogicalrightshiftoperator.C.>>>isthearithmeticrightshiftoperator.D.>>>isthelogicalrightshiftoperator.11.Whichofthefollowingassignmentsarelegal?A.floata=2.0B.doubleb=2.0C.intc=2D.longd=212.Whichoneofthefollowingargumentsisthecorrectargumentofthemain()method?A.charargs[]B.charargs[][]C.Stringarg[]D.Stringargs13.Whichoneofthefollowingiscorrecttocreateanarray?A.floatf[][]=newfloat[6][6];B.float[]f[]=newfloat[6][6];C.floatf[][]=newfloat[][6];D.float[][]f=newfloat[6][6];E.float[][]f=newfloat[6][];14.Giventhefollowingexpression:intm[]={0,1,2,3,4,5,6};Whichresultofthefollow...

1、当您付费下载文档后,您只拥有了使用权限,并不意味着购买了版权,文档只能用于自身使用,不得用于其他商业用途(如 [转卖]进行直接盈利或[编辑后售卖]进行间接盈利)。
2、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。
3、如文档内容存在违规,或者侵犯商业秘密、侵犯著作权等,请点击“违规举报”。

碎片内容

蜗牛文库的最新文档

二年级数学下册其中检测卷二年级数学下册其中检测卷附答案#期中测试卷.pdf
10.00金币
0下载
二年级数学下册期末质检卷(苏教版)二年级数学下册期末质检卷(苏教版)#期末复习 #期末测试卷 #二年级数学 #二年级数学下册#关注我持续更新小学知识.pdf
10.00金币
0下载
二年级数学下册期末混合运算专项练习二年级数学下册期末混合运算专项练习#二年级#二年级数学下册#关注我持续更新小学知识 #知识分享 #家长收藏孩子受益.pdf
10.00金币
1下载
二年级数学下册年月日三类周期问题解题方法二年级数学下册年月日三类周期问题解题方法#二年级#二年级数学下册#知识分享 #关注我持续更新小学知识 #家长收藏孩子受益.pdf
10.00金币
0下载
二年级数学下册解决问题专项训练二年级数学下册解决问题专项训练#专项训练#解决问题#二年级#二年级数学下册#知识分享.pdf
10.00金币
1下载
二年级数学下册还原问题二年级数学下册还原问题#二年级#二年级数学#关注我持续更新小学知识 #知识分享 #家长收藏孩子受益.pdf
10.00金币
1下载
二年级数学下册第六单元考试卷家长打印出来给孩子测试测试争取拿到高分!#小学二年级试卷分享 #二年级第六单考试数学 #第六单考试#二年级数学下册.pdf
10.00金币
0下载
二年级数学下册必背顺口溜口诀汇总二年级数学下册必背顺口溜口诀汇总#二年级#二年级数学下册 #知识分享 #家长收藏孩子受益 #关注我持续更新小学知识.pdf
10.00金币
0下载
二年级数学下册《重点难点思维题》两大问题解决技巧和方法巧算星期几解决周期问题还原问题强化思维训练老师精心整理家长可以打印出来给孩子练习#家长收藏孩子受益 #学霸秘籍 #思维训练 #二年级 #知识点总结.pdf
10.00金币
0下载
二年级数学下册 必背公式大全寒假提前背一背开学更轻松#二年级 #二年级数学 #二年级数学下册 #寒假充电计划 #公式.pdf
10.00金币
0下载
蜗牛文库+ 关注
实名认证
内容提供者

提供各种专业文档内容

确认删除?
QQ
  • QQ点击这里给我发消息
微信客服
  • 微信客服
回到顶部