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

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

1、计算机二级 JAVA-58及答案解析(总分:100.00,做题时间:90 分钟)一、B基本操作题/B(总题数:3,分数:100.00)1.本程序中,将字符串“Tadf$asdf int i; _(i=0; _) char c=str.charAt(i); if(_) System.out.print(c); (分数:30.00)_2.本程序求一个实数 37.13的整数部分和小数部分,并打印输出。 public class exam_35 public static void main(String args) _d=37.13; int i; _; double x; _; System.ou

2、t.println(d+“整数部分:“+i+“, 小数部分:“+x); (分数:30.00)_3.本程序计算 3位整数 365的个位、十位、百位的数,并分别打印输出。 public class exam_36 public static void main(String args) int num=365; int a, b, c; int temp=num; _; temp=temp-a*100; _; _; System.out.println(num+“:百位数:“+a+“, 十位数:“+b+“, 个位数:“+c); (分数:40.00)_计算机二级 JAVA-58答案解析(总分:100

3、00,做题时间:90 分钟)一、B基本操作题/B(总题数:3,分数:100.00)1.本程序中,将字符串“Tadf$asdf int i; _(i=0; _) char c=str.charAt(i); if(_) System.out.print(c); (分数:30.00)_正确答案:(for istr.length(); i+ !(c=a int i; _; double x; _; System.out.println(d+“整数部分:“+i+“, 小数部分:“+x); (分数:30.00)_正确答案:(double i=(int)d x=d-i)解析:3.本程序计算 3位整数 365的个位、十位、百位的数,并分别打印输出。 public class exam_36 public static void main(String args) int num=365; int a, b, c; int temp=num; _; temp=temp-a*100; _; _; System.out.println(num+“:百位数:“+a+“, 十位数:“+b+“, 个位数:“+c); (分数:40.00)_正确答案:(a=temp/100 b=temp/10 c=temp%10)解析:

展开阅读全文
相关资源
猜你喜欢
  • DIN EN 12101-8-2011 Smoke and heat control systems - Part 8 Smoke control dampers German version EN 12101-8 2011《烟和热控制系统 第8部分 排烟阀 德文版本EN 12101-8-2011》.pdf DIN EN 12101-8-2011 Smoke and heat control systems - Part 8 Smoke control dampers German version EN 12101-8 2011《烟和热控制系统 第8部分 排烟阀 德文版本EN 12101-8-2011》.pdf
  • DIN EN 12103-1999 Resilient floor coverings - Agglomerated cork underlays - Specification German version EN 12103 1999《弹性覆地材料 聚合软木垫 规范》.pdf DIN EN 12103-1999 Resilient floor coverings - Agglomerated cork underlays - Specification German version EN 12103 1999《弹性覆地材料 聚合软木垫 规范》.pdf
  • DIN EN 12104-2000 Resilient floor coverings - Cork floor tiles - Specification German version EN 12104 2000《弹性覆地材料 软木地板面砖 规范》.pdf DIN EN 12104-2000 Resilient floor coverings - Cork floor tiles - Specification German version EN 12104 2000《弹性覆地材料 软木地板面砖 规范》.pdf
  • DIN EN 12105-1998 Resilient floor coverings - Determination of moisture content of agglomerated composition cork German version EN 12105 1998《地板弹性铺覆物 压制的软木含湿量测定》.pdf DIN EN 12105-1998 Resilient floor coverings - Determination of moisture content of agglomerated composition cork German version EN 12105 1998《地板弹性铺覆物 压制的软木含湿量测定》.pdf
  • DIN EN 12106-1997 Plastics piping systems - Polyethylene (PE) pipes - Test method for the resistance to internal pressure after application of squeeze-off German version EN 12106 1.pdf DIN EN 12106-1997 Plastics piping systems - Polyethylene (PE) pipes - Test method for the resistance to internal pressure after application of squeeze-off German version EN 12106 1.pdf
  • DIN EN 12109-1999 Vacuum drainage systems inside buildings German version EN 12109 1999《建筑物内的真空排水系统》.pdf DIN EN 12109-1999 Vacuum drainage systems inside buildings German version EN 12109 1999《建筑物内的真空排水系统》.pdf
  • DIN EN 1211-2005 Chemicals used for treatment of water intended for human consumption - Potassium tripolyphosphate German version EN 1211 2005《人类生活用水处理用化学制品 三聚磷酸钾》.pdf DIN EN 1211-2005 Chemicals used for treatment of water intended for human consumption - Potassium tripolyphosphate German version EN 1211 2005《人类生活用水处理用化学制品 三聚磷酸钾》.pdf
  • DIN EN 12110-2014 Tunnelling machines - Air locks - Safety requirements German version EN 12110 2014《隧道机械 气闸 安全性要求 德文版本EN 12110-2014》.pdf DIN EN 12110-2014 Tunnelling machines - Air locks - Safety requirements German version EN 12110 2014《隧道机械 气闸 安全性要求 德文版本EN 12110-2014》.pdf
  • DIN EN 12111-2015 Tunnelling machines - Road headers and continuous miners - Safety requirements German version EN 12111 2014《隧道掘进机 巷道掘进机、联合采矿机 安全要求 德文版本EN 12111-2014》.pdf DIN EN 12111-2015 Tunnelling machines - Road headers and continuous miners - Safety requirements German version EN 12111 2014《隧道掘进机 巷道掘进机、联合采矿机 安全要求 德文版本EN 12111-2014》.pdf
  • 相关搜索

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

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