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

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

1、计算机二级 JAVA-61 及答案解析(总分:100.00,做题时间:90 分钟)一、B基本操作题/B(总题数:3,分数:100.00)1.本程序将字符串“Welcome to China!“转化为字符数组,并打印输出。 public class exam_49 public static void main(String args) String str=“Welcome to China!“; char ch; _; _; for(_) System.out.print(chi); (分数:30.00)_2.本程序计算半径为 2.4 的圆的面积。 public class exam_50

2、public static void main(String args) double r=2.4; double area=area(r); System.out.println(“area=“+area); public _ area(_) double area; area=StrictMath.PI*r*r/2; _; (分数:30.00)_3.本程序将字符数组 arr=a,C,d,E,T,s,$,W,z中的所有小写字母变成大写,并打印输出字符数组。 public class exam_51 public static void mainStringargs) char arr=a,C

3、d,E,T,s,$,W,z; int i=0; _; while(in) if(_) arri=_; i+; for(i=0; in; i+) System.out.print(arri+“ “); (分数:40.00)_计算机二级 JAVA-61 答案解析(总分:100.00,做题时间:90 分钟)一、B基本操作题/B(总题数:3,分数:100.00)1.本程序将字符串“Welcome to China!“转化为字符数组,并打印输出。 public class exam_49 public static void main(String args) String str=“Welcome

4、to China!“; char ch; _; _; for(_) System.out.print(chi); (分数:30.00)_正确答案:(ch=new charstr.length() ch=str.toCharArray() int i=0; ich.length; i+)解析:2.本程序计算半径为 2.4 的圆的面积。 public class exam_50 public static void main(String args) double r=2.4; double area=area(r); System.out.println(“area=“+area); publi

5、c _ area(_) double area; area=StrictMath.PI*r*r/2; _; (分数:30.00)_正确答案:(static double double r return area)解析:3.本程序将字符数组 arr=a,C,d,E,T,s,$,W,z中的所有小写字母变成大写,并打印输出字符数组。 public class exam_51 public static void mainStringargs) char arr=a,C,d,E,T,s,$,W,z; int i=0; _; while(in) if(_) arri=_; i+; for(i=0; in; i+) System.out.print(arri+“ “); (分数:40.00)_正确答案:(int n=arr.length arri=a & arri=z (char) (arr1-32)解析:

展开阅读全文
相关资源
猜你喜欢
  • DIN EN 3745-508-2003 Aerospace series - Fibres and cables optical aircraft use Test methods - Part 508 Torsion German and English version EN 3745-508 2002《航空航天系列 飞机光纤和电缆 试验方法 第508部.pdf DIN EN 3745-508-2003 Aerospace series - Fibres and cables optical aircraft use Test methods - Part 508 Torsion German and English version EN 3745-508 2002《航空航天系列 飞机光纤和电缆 试验方法 第508部.pdf
  • DIN EN 3745-509-2003 Aerospace series - Fibres and cables optical aircraft use Test methods - Part 509 Kink test German and English version EN 3745-509 2002《航空航天系列 飞机光纤和电缆 试验方法 第50.pdf DIN EN 3745-509-2003 Aerospace series - Fibres and cables optical aircraft use Test methods - Part 509 Kink test German and English version EN 3745-509 2002《航空航天系列 飞机光纤和电缆 试验方法 第50.pdf
  • DIN EN 3745-510-2017 Aerospace series - Fibres and cables optical aircraft use - Test methods - Part 510 Bending test German and English version EN 3745-510 2017《航空航天系列 飞机光纤和电缆 试验方.pdf DIN EN 3745-510-2017 Aerospace series - Fibres and cables optical aircraft use - Test methods - Part 510 Bending test German and English version EN 3745-510 2017《航空航天系列 飞机光纤和电缆 试验方.pdf
  • DIN EN 3745-511-2002 Aerospace series - Fibres and cables optical aircraft use Test methods - Part 511 Cable to cable abrasion German and English version EN 3745-511 2002《航空航天系列 航空.pdf DIN EN 3745-511-2002 Aerospace series - Fibres and cables optical aircraft use Test methods - Part 511 Cable to cable abrasion German and English version EN 3745-511 2002《航空航天系列 航空.pdf
  • DIN EN 3745-512-2006 Aerospace series - Fibres and cables optical aircraft use - Test methods - Part 512 Flexure endurance German and English version EN 3745-512 2005《航空航天系列 航空器用的电.pdf DIN EN 3745-512-2006 Aerospace series - Fibres and cables optical aircraft use - Test methods - Part 512 Flexure endurance German and English version EN 3745-512 2005《航空航天系列 航空器用的电.pdf
  • DIN EN 3745-513-2006 Aerospace series - Fibres and cables optical aircraft use - Test methods - Part 513 Crush resistance German and English version EN 3745-513 2005《航空航天系列 航空器用的电缆.pdf DIN EN 3745-513-2006 Aerospace series - Fibres and cables optical aircraft use - Test methods - Part 513 Crush resistance German and English version EN 3745-513 2005《航空航天系列 航空器用的电缆.pdf
  • DIN EN 3745-514-2009 Aerospace series - Fibres and cables optical aircraft use - Test methods - Part 514 Cable twist bend German and English version EN 3745-514 2009《航空航天系列 飞行器用光纤和.pdf DIN EN 3745-514-2009 Aerospace series - Fibres and cables optical aircraft use - Test methods - Part 514 Cable twist bend German and English version EN 3745-514 2009《航空航天系列 飞行器用光纤和.pdf
  • DIN EN 3745-515-2012 Aerospace series - Fibres and cables optical aircraft use - Test methods - Part 515 Buffer insertion force German and English version EN 3745-515 2012《航空航天系列 航.pdf DIN EN 3745-515-2012 Aerospace series - Fibres and cables optical aircraft use - Test methods - Part 515 Buffer insertion force German and English version EN 3745-515 2012《航空航天系列 航.pdf
  • DIN EN 3745-516-2017 Aerospace series - Fibres and cables optical aircraft use - Test methods - Part 516 Severe cable bend test German and English version EN 3745-516 2017《航空航天系列 航.pdf DIN EN 3745-516-2017 Aerospace series - Fibres and cables optical aircraft use - Test methods - Part 516 Severe cable bend test German and English version EN 3745-516 2017《航空航天系列 航.pdf
  • 相关搜索

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

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