大大数据基础技能精彩试题及问题详解.doc

大大数据基础技能精彩试题及问题详解.doc

ID:56523631

大小:98.50 KB

页数:19页

时间:2020-06-27

大大数据基础技能精彩试题及问题详解.doc_第1页
大大数据基础技能精彩试题及问题详解.doc_第2页
大大数据基础技能精彩试题及问题详解.doc_第3页
大大数据基础技能精彩试题及问题详解.doc_第4页
大大数据基础技能精彩试题及问题详解.doc_第5页
资源描述:

《大大数据基础技能精彩试题及问题详解.doc》由会员上传分享,免费在线阅读,更多相关内容在行业资料-天天文库

1、Java基础1.Whichofthefollowingwillcompilecorrectly?A)floatf=10f;B)floatf=10.1;C)floatf=10.1f;D)byteb=10b;2.WhichdeclarationsofidentifiersarelegalA.$personsB.TwoUsersC.*pointD.thisE._endline3.WhichstatementofassigningalongtypevariabletoahexadecimalvalueiscorrectA.longnum

2、ber=345L;B.longnumber=0345;C.longnumber=0345L;D.longnumber=0x345L4.WhichofthefollowingfragmentsmightcauseerrorsA.Strings="Gonewiththewind";Stringt="good";Stringk=s+t;B.Strings="Gonewiththewind";Stringt;t=s[3]+"one";C.Strings="Gonewiththewind";Stringstandard=s.toUpper

3、Case();D.Strings="homedirectory";Stringt=s-"directory";5.Whicharesyntacticallyvalidstatementat//pointxclassPerson{privateinta;publicintchange(intm){returnm;}}publicclassTeacherextendsPerson{publicintb;publicstaticvoidmain(Stringarg[]){Personp=newPerson();Teachert=new

4、Teacher();inti;//pointx}}A.i=m;B.i=b;C.i=p.a;D.i=p.change(30);E.i=t.b.6.Whichlayoutmanagerisusedwhentheframeisresizedthebuttons'spositionintheFramemightbechangedA.BorderLayoutB.FlowLayoutC.CardLayoutD.GridLayout7.Giventhefollowingcodefragment:1)publicvoidcreate(){2}V

5、ectormyVect;3}myVect=newVector();4}}WhichofthefollowingstatementsaretrueA.Thedeclarationonline2doesnotallocatememoryspaceforthevariablemyVect.B.Thedeclarationonline2allocatesmemoryspaceforareferencetoaVectorobject.C.Thestatementonline2createsanobjectofclassVector.D.T

6、hestatementonline3createsanobjectofclassVector.E.Thestatementonline3allocatesmemoryspaceforanobjectofclassVector8.Whichofthefollowingansweriscorrecttoexpressthevalue8inoctalnumberA.B.0x10C.08D.0x89.WhicharenotJavakeywordsA.TRUEB.sizeofC.constD.superE.void10.Whichofth

7、efollowingstatementsaretrueA.Theequals()methoddeterminesifreferencevaluesrefertothesameobject.B.The==operatordeterminesifthecontentsandtypeoftwoseparateobjectsmatch.C.Theequals()methodreturnstrueonlywhenthecontentsoftwoobjectsmatch.D.TheclassFileoverridesequals()tore

8、turntrueifthecontentsandtypeoftwoseparateobjectsmatch.11.WhichstatementsaboutinheritancearetrueA.InJavaprogramminglanguageonlyallow

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

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

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