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

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

1、计算机二级 JAVA-53及答案解析(总分:100.00,做题时间:90 分钟)一、B基本操作题/B(总题数:3,分数:100.00)1.本程序的功能是依次输出字符4、2和7。 public class exam_25 public static void main(String args) char c=1; _; System.out.println(c); _; System.out.println(c); _; System.out.println(c); (分数:30.00)_2.本程序的功能是比较三个数(13,35,6)的大小,将最小的数输出。 public class exam_

2、26 public static void main(String args) int a=13, b=35, c=6; int min; if(ab) _; else _; if(minc) _; System.out.println(“min=“+min); (分数:30.00)_3.本程序的功能是计算 110 之间(包括 1和 10)除了 5以外各个自然数的和。 public class exam_27 public static void main(String args) int i=1; int sum=0; while(i=10) if(i=5) _; _; _; i+; Sys

3、tem.out.println(“sum=“+sum); (分数:40.00)_计算机二级 JAVA-53答案解析(总分:100.00,做题时间:90 分钟)一、B基本操作题/B(总题数:3,分数:100.00)1.本程序的功能是依次输出字符4、2和7。 public class exam_25 public static void main(String args) char c=1; _; System.out.println(c); _; System.out.println(c); _; System.out.println(c); (分数:30.00)_正确答案:(c= (char)

4、c+3) c= (char)(c-2) c= (char)(c+5)解析:2.本程序的功能是比较三个数(13,35,6)的大小,将最小的数输出。 public class exam_26 public static void main(String args) int a=13, b=35, c=6; int min; if(ab) _; else _; if(minc) _; System.out.println(“min=“+min); (分数:30.00)_正确答案:(min=b min=a min=c)解析:3.本程序的功能是计算 110 之间(包括 1和 10)除了 5以外各个自然数的和。 public class exam_27 public static void main(String args) int i=1; int sum=0; while(i=10) if(i=5) _; _; _; i+; System.out.println(“sum=“+sum); (分数:40.00)_正确答案:(i+(或 i=i+1或 i+=1) continue sum=sum+i(或 sum+=i)解析:

展开阅读全文
相关资源
猜你喜欢
  • KS R ISO 11155-1-2008 Road vehicles-Air filters for passenger compartments-Part 1:Test for particulate filtration《道路车辆 客座室用空气过滤器 第1部分 颗粒过滤试验》.pdf KS R ISO 11155-1-2008 Road vehicles-Air filters for passenger compartments-Part 1:Test for particulate filtration《道路车辆 客座室用空气过滤器 第1部分 颗粒过滤试验》.pdf
  • KS R ISO 11243-2003 Cycles-Luggage carriers for bicycles-Concepts classification and testing 《自行车 自行车用行李架 概念、分类和试验》.pdf KS R ISO 11243-2003 Cycles-Luggage carriers for bicycles-Concepts classification and testing 《自行车 自行车用行李架 概念、分类和试验》.pdf
  • KS R ISO 11614-2001 Reciprocating internal combustion compression-ignition engines- Apparatus for measurement of the opacity and for determination of the light absorption coefficie.pdf KS R ISO 11614-2001 Reciprocating internal combustion compression-ignition engines- Apparatus for measurement of the opacity and for determination of the light absorption coefficie.pdf
  • KS R ISO 1176-2008 Road vehicles-Masses-Vocabulary and codes《道路车辆 质量 词汇和代码 》.pdf KS R ISO 1176-2008 Road vehicles-Masses-Vocabulary and codes《道路车辆 质量 词汇和代码 》.pdf
  • KS R ISO 11898-2-2007 Road vehicles-Controller area network(CAN)-Part 2:High-speed medium access unit《道路车辆 控制器局域网络 第2部分 高速媒体存取单元》.pdf KS R ISO 11898-2-2007 Road vehicles-Controller area network(CAN)-Part 2:High-speed medium access unit《道路车辆 控制器局域网络 第2部分 高速媒体存取单元》.pdf
  • KS R ISO 12097-3-2008 Road vehicles-Airbag components-Part 3:Testing of inflator assemblies《道路车辆 空气囊零部件 第3部分 充气机组合件的检验》.pdf KS R ISO 12097-3-2008 Road vehicles-Airbag components-Part 3:Testing of inflator assemblies《道路车辆 空气囊零部件 第3部分 充气机组合件的检验》.pdf
  • KS R ISO 12156-1-2012 Diesel fuel-Assessment of lubricity using the high-frequency reciprocating rig(HFRR)-Part 1:Test method.pdf KS R ISO 12156-1-2012 Diesel fuel-Assessment of lubricity using the high-frequency reciprocating rig(HFRR)-Part 1:Test method.pdf
  • KS R ISO 12161-2008 Road vehicles-Endurance braking systems ofmotor vehicles and towed vehicles-Test procedures《道路车辆 电动机车和拖车耐摩擦制动系统 试验方法》.pdf KS R ISO 12161-2008 Road vehicles-Endurance braking systems ofmotor vehicles and towed vehicles-Test procedures《道路车辆 电动机车和拖车耐摩擦制动系统 试验方法》.pdf
  • KS R ISO 12351-2009 Road vehicles-Determination of head contact and duration in impact tests《道路车辆 在碰撞试验中头部触点和持续时间的测定》.pdf KS R ISO 12351-2009 Road vehicles-Determination of head contact and duration in impact tests《道路车辆 在碰撞试验中头部触点和持续时间的测定》.pdf
  • 相关搜索

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

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