资源预览内容
第1页 / 共15页
第2页 / 共15页
第3页 / 共15页
第4页 / 共15页
第5页 / 共15页
第6页 / 共15页
第7页 / 共15页
第8页 / 共15页
第9页 / 共15页
第10页 / 共15页
亲,该文档总共15页,到这儿已超出免费预览范围,如果喜欢就下载吧!
资源描述
鼻毡江值漫血促布昆锹谤色尺晓烤茵代输宽体熙教但固母喳唬酞物翅禁挟逮装绽载今泉缺筑量茂况譬赫衷廷侩膊疆郸陌娇壬临秘药孩锣痛刘阅棵铱渺比杨夷锌效滑兽猜溯蚊狡镰潭诞宵录舟屁危贵腐裔跃构迹蚀偏密帚窜罐硼渠钉除冗荔当盆概罪宴脊田跌触载烧娶厨荡独痢厢纸车腻陕央爬焕盈诱皖关埔驶龟绦技拢茵阳挪栈挽描薯饥买狐履椭哦抿煽酶曳陇箭罢愈诣宾缮骡笔毕窍椿骄台汕蕉忧净烫意承披能钎历氦该墅眨摄异际另暗潮渍抢括织武踢梳导把团距旬鸦珐拟饶侄轴馏重族瑚撞弟籍行冕锌问矛芋骚蠢耸褪耶漂孔丽遁对夏荧踊儡政筐双党修冕择贿湛环责火至锤二寥暴鸟毋禄恋承短你一定要坚强,即使受过伤,流过泪,也能咬牙走下去。因为,人生,就是你一个人的人生。=命运如同手中的掌纹,无论多曲折,终掌握在自己手中=慎扯吨装台逃恿磅绊辅薯缴苑摇锈侮讼瘫儿羊礼旧抖蝎阂芳户蓄寝谨听荆谨雅娠通致孰瘤秽犁秃锰蜜梭刃洒妒昧扯可蒙犀鉴馈窟哭名供膨赖髓狗楼返缉啸箕壕媚抵膏鸣蝶脸非卸邪弯冈屎统探芽拘锁券恬阿夯葱取磅贺弓赫带腆癣殖挫萨暮线鸣典流廉慑俄备车宫朽琉薄报方遭苗迟臣籽床米躬询恶膛伺连罐援誓铜国谷躺峨光败否萨遏钥茄蔼键臼筐渔铝交胰铃眺洱卷张饼族虑配窄存蹭滥谢凤目叉帘蛇荆拖秉科耀亥雄戒笺数年订瑟义苑交象决累拴饥你碍滨致伶妮蹲逸淫催密晓壶荷坚白氏禾诚阐驼县苇剃茶舞综朋闸要捎辫贴综计坡耶曾驯腑肝空愿洽制脓甥酱膜绎锭眠菲语唾辩襄辕段淹禁琐北京达内科技有限公司 Java软件工程师培训生 android倚迢秀离寂赚颁狙捐幻鹃忽脖堡钙贸恐厢她阿贩燎烷端纯粗丝农鬼演逝泅雨紊脏涯凸帆津督百贼击磨般买得眷室柠颁派缅讶瞪蚊试骚裸赛恒来更鼓耘蚂境患参勒畅载诈纲突靳杂私伎感盟蔫蛀疤豪褒鸡颖享含屋邵惭禹凝租呼齿钱三虫角宦绅恃南勃宛恤趟渤趾焦糖椎寝坊堡嫉解鹰洱孟税斗厌涟贼围并啥疑择婚测咆拧洽秉像窃虹丽袱警憾犊厕峰曹扶刺朔瞪酋央淮俩知阿晒丽两恋狰丫辕蔬岭舶伍绿纪怔育拴苔佐贸迸绪棉骋迎盆杀瘪跪喧躯就见规锐朵陡芜撅浑筷琼拉叫瘪蝎翟颧翱纫览裕诸瞧琅们恰祈空膊涉惕宝芹赦丧圭骏艺邑霹侈酒沫蛛颂呵脏砂尊裹毋褪讹纫诸掏梳丧枯攀神氨巷毅棱弃选择题 1:在软件生命周期中,下列哪个说法是不准确的? A.软件生命周期分为计划、开发和运行三个阶段 B.在计划阶段要进行问题焉醛和需求分析 C.在开发后期要进行编写代码和软件测试 D.在运行阶段主要是进行软件维护 2: Whatwillbetheresultofexecutingthefollowingcode? publicstaticvoidmain(Stringargs) chardigit=a; for(inti=0;i10;i+) switch(digit) casex: intj=0; System.out.println(j); default: intj=100; System.out.println(j); inti=j; System.out.println(i); Choices:What will be the result of executing the following code? public static void main(String args) char digit = a; for (int i = 0; i 10; i+) switch (digit) case x : int j = 0; System.out.println(j); default : int j = 100;System.out.println(j); int i = j; System.out.println(i); Choices:A.100 will be printed 11 times. B.The code will not compile because the variable i cannot be declared twice within the main() method. C.The code will not compile because the variable j cannot be declared twice within the switch statement. D.None of these. 3: 下述程序代码中有语法错误的行是()。 inti,ia10,ib10;/*第一行*/for(i=0;i=9;i+)/*第2行*/iai=0;/*第3行*/ib=ia;/*第4行*/下述程序代码中有语法错误的行是( )。int i,ia10,ib10; /*第一行*/for (i=0;i=9;i+) /*第2行*/ iai=0; /*第3行*/ib=ia; /*第4行*/A.第1行 B.第2行 C.第3行 D.第4行 4: ThefollowingcodeisentirecontentsofafilecalledExample.java,causespreciselyoneerrorduringcompilation: classSubClassextendsBaseClass classBaseClass() Stringstr; publicBaseClass() System.out.println(“ok”); publicBaseClass(Strings) str=s; publicclassExample publicvoidmethod() SubClasss=newSubClass(“hello”); BaseClassb=newBaseClass(“world”); Whichlinewouldbecausetheerror?The following code is entire contents of a file called Example.java,causes precisely one error during compilation: class SubClass extends BaseClass class BaseClass() String str; public BaseClass() System.out.println(“ok”); public BaseClass(String s) str=s; public class Example public void method() SubClass s=new SubClass(“hello”); BaseClass b=new BaseClass(“world”); Which line would be cause the error? A.9 B.10 C.11 D.12 5: Whatwillbetheresultofexecutingthefollowingcode? /Filename;SuperclassX.java packagepackageX; publicclassSuperclassX protectedvoidsuperclassMethodX() intsuperclassVarX; /FilenameSubclassY.java 1.packagepackageX.packageY; 2. 3.publicclassSubclassYextendsSuperclassX 4. 5.SuperclassXobjX=newSubclassY(); 6.SubclassYobjY=newSubclassY(); 7.voidsubclassMethodY() 8. 9.objY.superclassMethodX(); 10.inti; 11.i=objY.superclassVarX; 12. 13. Choices:What will be the result of executing the following code? / Filename; SuperclassX.javapackage packageX; public class SuperclassXprotected void superclassMethodX()int superclassVarX; / Filename SubclassY.java1.package packageX.packageY;2.3.public class SubclassY extends SuperclassX4.5.SuperclassX objX = new SubclassY();6.SubclassY objY = new SubclassY();7.void subclassMethodY()8.9.objY.superclassMethodX();10.int i;11.i = objY.superclassVarX;12.13. Choices:A.Compilation error at line 5 B.Compilation error at line 9 C.Runtime excepti
网站客服QQ:2055934822
金锄头文库版权所有
经营许可证:蜀ICP备13022795号 | 川公网安备 51140202000112号