【计算机类职业资格】计算机二级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)解析:

展开阅读全文
相关资源
猜你喜欢
  • BS 4592-6-2008 Industrial type flooring and stair treads - Glass reinforced plastics (GRP) moulded open mesh gratings and protective barriers - Specification《工业地板和梯板 玻璃增强塑料(GRP)注模开.pdf BS 4592-6-2008 Industrial type flooring and stair treads - Glass reinforced plastics (GRP) moulded open mesh gratings and protective barriers - Specification《工业地板和梯板 玻璃增强塑料(GRP)注模开.pdf
  • BS 46-3-1951 Keys and keyways and taper pins - Specification for solid and split taper pins for general engineering purposes《键和键槽及锥形销 第3部分 一般工程用整体的和开口锥形销规范》.pdf BS 46-3-1951 Keys and keyways and taper pins - Specification for solid and split taper pins for general engineering purposes《键和键槽及锥形销 第3部分 一般工程用整体的和开口锥形销规范》.pdf
  • BS 4602-1977 Specification for the use of metric units in specifications for glass containers and finishes《玻璃容器及精度公制单位规格使用规范》.pdf BS 4602-1977 Specification for the use of metric units in specifications for glass containers and finishes《玻璃容器及精度公制单位规格使用规范》.pdf
  • BS 4603-1970 Method for determination of residue on ignition or ash of chemical products《化学品引燃或灰分残余物的测定方法》.pdf BS 4603-1970 Method for determination of residue on ignition or ash of chemical products《化学品引燃或灰分残余物的测定方法》.pdf
  • BS 4607-1-1984+A2-2010 Non-metallic conduits and fittings for electrical installations - Specification for fittings and components of insulating material《电气装置用非金属导管及配件规范 绝缘材料配件和组件规.pdf BS 4607-1-1984+A2-2010 Non-metallic conduits and fittings for electrical installations - Specification for fittings and components of insulating material《电气装置用非金属导管及配件规范 绝缘材料配件和组件规.pdf
  • BS 4611-1989 Methods of test for polyolefin tape yarns《聚烯烃扁丝的试验方法》.pdf BS 4611-1989 Methods of test for polyolefin tape yarns《聚烯烃扁丝的试验方法》.pdf
  • BS 4618-1 1 3-1974 Recommendations for the presentation of plastics design data - Mechanical properties - Creep lateral contraction ratio (Poissons ratio)《塑料设计数据表示方法推荐规程 第1部分 机械特性 .pdf BS 4618-1 1 3-1974 Recommendations for the presentation of plastics design data - Mechanical properties - Creep lateral contraction ratio (Poissons ratio)《塑料设计数据表示方法推荐规程 第1部分 机械特性 .pdf
  • BS 4618-4 3-1974 Recommendations for the presentation of plastics design data - Environmental and chemical effects - Resistance to colour change produced by exposure to light《塑料设计数.pdf BS 4618-4 3-1974 Recommendations for the presentation of plastics design data - Environmental and chemical effects - Resistance to colour change produced by exposure to light《塑料设计数.pdf
  • BS 4618-4 6-1974 Recommendations for the presentation of plastics design data - Environmental and chemical effects - The thermal endurance of plastics《塑料设计数据表示方法推荐标准 第4部分 环境和化学效应 第.pdf BS 4618-4 6-1974 Recommendations for the presentation of plastics design data - Environmental and chemical effects - The thermal endurance of plastics《塑料设计数据表示方法推荐标准 第4部分 环境和化学效应 第.pdf
  • 相关搜索

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

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