【计算机类职业资格】计算机二级JAVA-63及答案解析.doc

上传人:testyield361 文档编号:1338354 上传时间:2019-10-17 格式:DOC 页数:2 大小:27.50KB
下载 相关 举报
【计算机类职业资格】计算机二级JAVA-63及答案解析.doc_第1页
第1页 / 共2页
【计算机类职业资格】计算机二级JAVA-63及答案解析.doc_第2页
第2页 / 共2页
亲,该文档总共2页,全部预览完了,如果喜欢就下载吧!
资源描述

1、计算机二级 JAVA-63及答案解析(总分:100.00,做题时间:90 分钟)一、B基本操作题/B(总题数:3,分数:100.00)1.本程序判断 score=89,93,60,59,78,91中是否所有人的成绩都超过了 80分,如果有人没有超过,则显示提示信息“有人未超过 80分!”,否则显示“全部超过 80分!” public class exam_58 public static void main(String args) int score=89,93,60,59,78,91; int i=0; while(_) if(scorei80) _; i+; if(_) System.o

2、ut.println(“有人未超过 80分!“); else System.out.println(“全部超过 80分!“); (分数:30.00)_2.本程序分别输出字符串:a/b、“c/d“和e/f。 public class exam_59 public static void main(String args) String str=new String(); _; System.out.println(str); _; System.out.println(str); _; System.out.println(str); (分数:30.00)_3.本程序将数组中 arr=5,6,3

3、7,9,1)的各个元素按下标的逆序输出。 public clas s exam_60 public static void main(String args) int arr=5,6,3,7,9,1; _; n=_; while(n=0) System.out.print(arrn+“ “); _; (分数:40.00)_计算机二级 JAVA-63答案解析(总分:100.00,做题时间:90 分钟)一、B基本操作题/B(总题数:3,分数:100.00)1.本程序判断 score=89,93,60,59,78,91中是否所有人的成绩都超过了 80分,如果有人没有超过,则显示提示信息“有人未超过

4、 80分!”,否则显示“全部超过 80分!” public class exam_58 public static void main(String args) int score=89,93,60,59,78,91; int i=0; while(_) if(scorei80) _; i+; if(_) System.out.println(“有人未超过 80分!“); else System.out.println(“全部超过 80分!“); (分数:30.00)_正确答案:(iscore.length break iscore.length)解析:2.本程序分别输出字符串:a/b、“c/

5、d“和e/f。 public class exam_59 public static void main(String args) String str=new String(); _; System.out.println(str); _; System.out.println(str); _; System.out.println(str); (分数:30.00)_正确答案:(str=“a/b“ str=“c/d“ str=“/e/f/“)解析:3.本程序将数组中 arr=5,6,3,7,9,1)的各个元素按下标的逆序输出。 public clas s exam_60 public static void main(String args) int arr=5,6,3,7,9,1; _; n=_; while(n=0) System.out.print(arrn+“ “); _; (分数:40.00)_正确答案:(int n arr.length-1 n-(或 n=n-1或 n-=1)解析:

展开阅读全文
相关资源
猜你喜欢
  • NBN-EN 3052+A1-1994 1250 Aerospace series - Bolts normal hexagonal head close tolerance normal shank short thread in heat and corrosion resisting steel passivated - Classification .pdf NBN-EN 3052+A1-1994 1250 Aerospace series - Bolts normal hexagonal head close tolerance normal shank short thread in heat and corrosion resisting steel passivated - Classification .pdf
  • NBN-EN 3053-1994 4375 Aerospace series - Bearing airframe rolling - Single row self-aligning roller bearings in steel - Dimensions and loads《航空航天系列 飞机机架滚动轴承,耐腐蚀钢制单列自对中滚柱轴承 尺寸和荷载》.pdf NBN-EN 3053-1994 4375 Aerospace series - Bearing airframe rolling - Single row self-aligning roller bearings in steel - Dimensions and loads《航空航天系列 飞机机架滚动轴承,耐腐蚀钢制单列自对中滚柱轴承 尺寸和荷载》.pdf
  • NBN-EN 3055-1994 0625 Aerospace series - Bearings airframe rolling - Single row self-aligning roller bearings in corrosion resisting steel - Dimensions and loads《航空航天系列 飞机用轴承,不锈钢单列.pdf NBN-EN 3055-1994 0625 Aerospace series - Bearings airframe rolling - Single row self-aligning roller bearings in corrosion resisting steel - Dimensions and loads《航空航天系列 飞机用轴承,不锈钢单列.pdf
  • NBN-EN 3056-1994 3750 Aerospace series - Bearings airframe rolling - Rigid double row ball bearings in steel - Dimensions and loads《航空航天系列 飞机用轴承,镀铬钢双列向心球轴承 尺寸和负载》.pdf NBN-EN 3056-1994 3750 Aerospace series - Bearings airframe rolling - Rigid double row ball bearings in steel - Dimensions and loads《航空航天系列 飞机用轴承,镀铬钢双列向心球轴承 尺寸和负载》.pdf
  • NBN-EN 3057-1994 8750 Aerospace series - Bearings airframe rolling - Rigid double row ball bearings in steel cadmium plated - Dimensions and loads《航空航天系列 飞机用轴承,镀铬钢双列向心球轴承 尺寸和负载》.pdf NBN-EN 3057-1994 8750 Aerospace series - Bearings airframe rolling - Rigid double row ball bearings in steel cadmium plated - Dimensions and loads《航空航天系列 飞机用轴承,镀铬钢双列向心球轴承 尺寸和负载》.pdf
  • NBN-EN 3058-1994 3750 Aerospace series - Bearings airframe rolling - Rigid double row ball bearings in corrosion resisting steel - Dimensions and loads《航空航天系列 飞机用轴承,不锈钢双列向心球轴承 尺寸和负.pdf NBN-EN 3058-1994 3750 Aerospace series - Bearings airframe rolling - Rigid double row ball bearings in corrosion resisting steel - Dimensions and loads《航空航天系列 飞机用轴承,不锈钢双列向心球轴承 尺寸和负.pdf
  • NBN-EN 3063-1995 2500 Aerospace series - Bolts double hexagon head close tolerance shank medium length thread in heat resisting nickel base alloy NI-P101HT (Waspaloy) - Classificat.pdf NBN-EN 3063-1995 2500 Aerospace series - Bolts double hexagon head close tolerance shank medium length thread in heat resisting nickel base alloy NI-P101HT (Waspaloy) - Classificat.pdf
  • NBN-EN 309-1992 9375 《木质木屑板 定义及分类》.pdf NBN-EN 309-1992 9375 《木质木屑板 定义及分类》.pdf
  • NBN-EN 30993-4-1994 1250 Biological evaluation of medical devices - Part 4  Selection of tests for interactions with blood (ISO 10993-4 1992)《医疗器械的生物评定 第4部分:与血液相互作用的选择试验(ISO 10993:.pdf NBN-EN 30993-4-1994 1250 Biological evaluation of medical devices - Part 4 Selection of tests for interactions with blood (ISO 10993-4 1992)《医疗器械的生物评定 第4部分:与血液相互作用的选择试验(ISO 10993:.pdf
  • 相关搜索

    当前位置:首页 > 考试资料 > 职业资格

    copyright@ 2008-2019 麦多课文库(www.mydoc123.com)网站版权所有
    备案/许可证编号:苏ICP备17064731号-1