【计算机类职业资格】计算机二级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 806-4-2010 Specifications for installations inside buildings conveying water for human consumption - Part 4 Installation German version EN 806-4 2010《建筑物内部饮用水输送设备规范 第4部分 装置 .pdf DIN EN 806-4-2010 Specifications for installations inside buildings conveying water for human consumption - Part 4 Installation German version EN 806-4 2010《建筑物内部饮用水输送设备规范 第4部分 装置 .pdf
  • DIN EN 806-5-2012 Specifications for installations inside buildings conveying water for human consumption - Part 5 Operation and maintenance German version EN 806-5 2012《建筑物内置人类用水输.pdf DIN EN 806-5-2012 Specifications for installations inside buildings conveying water for human consumption - Part 5 Operation and maintenance German version EN 806-5 2012《建筑物内置人类用水输.pdf
  • DIN EN 809-2012 Pumps and pump units for liquids - Common safety requirements German version EN 809 1998+A1 2009 + AC 2010《液体用泵和泵元件 通用安全要求 德文版本EN 809-1998+A1-2009+AC-2010》.pdf DIN EN 809-2012 Pumps and pump units for liquids - Common safety requirements German version EN 809 1998+A1 2009 + AC 2010《液体用泵和泵元件 通用安全要求 德文版本EN 809-1998+A1-2009+AC-2010》.pdf
  • DIN EN 81-20-2014 Safety rules for the construction and installation of lifts - Lifts for the transport of persons and goods - Part 20 Passenger and goods passenger lifts German ve.pdf DIN EN 81-20-2014 Safety rules for the construction and installation of lifts - Lifts for the transport of persons and goods - Part 20 Passenger and goods passenger lifts German ve.pdf
  • DIN EN 81-22-2014 Safety rules for the construction and installation of lifts - Lifts for the transport of persons and goods - Part 22 Electric lifts with inclined path German vers.pdf DIN EN 81-22-2014 Safety rules for the construction and installation of lifts - Lifts for the transport of persons and goods - Part 22 Electric lifts with inclined path German vers.pdf
  • DIN EN 81-3-2011 Safety rules for the construction und installation of lifts - Part 3 Electric and hydraulic service lifts German version EN 81-3 2000+A1 2008 + AC 2009《电梯建造和安装的安全规.pdf DIN EN 81-3-2011 Safety rules for the construction und installation of lifts - Part 3 Electric and hydraulic service lifts German version EN 81-3 2000+A1 2008 + AC 2009《电梯建造和安装的安全规.pdf
  • DIN EN 81-31-2010 Safety rules for the construction and installation of lifts - Lifts for the transport of goods only - Part 31 Accessible goods only lifts German version EN 81-31 .pdf DIN EN 81-31-2010 Safety rules for the construction and installation of lifts - Lifts for the transport of goods only - Part 31 Accessible goods only lifts German version EN 81-31 .pdf
  • DIN EN 81-40-2009 Safety rules for the construction and installation of lifts - Special lifts for the transport of persons and goods - Part 40 Stairlifts and inclined lifting platf.pdf DIN EN 81-40-2009 Safety rules for the construction and installation of lifts - Special lifts for the transport of persons and goods - Part 40 Stairlifts and inclined lifting platf.pdf
  • DIN EN 81-41-2011 Safety rules for the construction and installation of lifts - Special lifts for the transport of persons and goods - Part 41 Vertical lifting platforms intended f.pdf DIN EN 81-41-2011 Safety rules for the construction and installation of lifts - Special lifts for the transport of persons and goods - Part 41 Vertical lifting platforms intended f.pdf
  • 相关搜索

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

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