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

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

1、计算机二级 JAVA-65及答案解析(总分:100.00,做题时间:90 分钟)一、B基本操作题/B(总题数:3,分数:100.00)1.本程序将字符数组 arr中属于字母(AZ 和 az)的字符添加到一个字符串 str的尾部。 public class exam_52 public static void main(String args) char arr=1,C,d,E,T,s,$,W,#,i; String str; _; int 1=arr.length; int i=0; do if(_) str=str.concat(String.valueOf(arri); i+; while

2、); System.out.println(str); (分数:30.00)_2.本程序将一个整型变量 op1的二进制的低 3位全部变成 1。 public class exam_53 public static void main(String args) _op1=21; int op2=3; _res; _; System.out.println(res); (分数:30.00)_3.本程序将整型变量 op1的二进制第 4位(从低位开始计算)数进行翻转(即如果是 1,则变成 0;如果是0,则变成 1)。 public class exam_54 public static void

3、main(String args) _op1=21; _op2=8; _; System.out.println(op1); (分数:40.00)_计算机二级 JAVA-65答案解析(总分:100.00,做题时间:90 分钟)一、B基本操作题/B(总题数:3,分数:100.00)1.本程序将字符数组 arr中属于字母(AZ 和 az)的字符添加到一个字符串 str的尾部。 public class exam_52 public static void main(String args) char arr=1,C,d,E,T,s,$,W,#,i; String str; _; int 1=arr

4、length; int i=0; do if(_) str=str.concat(String.valueOf(arri); i+; while(_); System.out.println(str); (分数:30.00)_正确答案:(str=new String() arri=A int op2=3; _res; _; System.out.println(res); (分数:30.00)_正确答案:(int int res=op1 | op2)解析:3.本程序将整型变量 op1的二进制第 4位(从低位开始计算)数进行翻转(即如果是 1,则变成 0;如果是0,则变成 1)。 public class exam_54 public static void main(String args) _op1=21; _op2=8; _; System.out.println(op1); (分数:40.00)_正确答案:(int int op1=op1op2)解析:

展开阅读全文
相关资源
猜你喜欢
  • DIN ISO 16000-25-2012 Indoor air - Part 25 Determination of the emission of semi-volatile organic compounds by building products - Micro-chamber method (ISO 16000-25 2011)《室内空气 第25.pdf DIN ISO 16000-25-2012 Indoor air - Part 25 Determination of the emission of semi-volatile organic compounds by building products - Micro-chamber method (ISO 16000-25 2011)《室内空气 第25.pdf
  • DIN ISO 16000-27-2014 Indoor air - Part 27 Determination of settled fibrous dust on surfaces by SEM (scanning electron microscopy) (direct method) (ISO 16000-27 2014)《室内空气 第27部分 采用.pdf DIN ISO 16000-27-2014 Indoor air - Part 27 Determination of settled fibrous dust on surfaces by SEM (scanning electron microscopy) (direct method) (ISO 16000-27 2014)《室内空气 第27部分 采用.pdf
  • DIN ISO 16000-28-2012 Indoor air Part 28 Determination of odour emissions from building products using test chambers (ISO 16000-28 2012)《室内空气 第28部分 使用试验室对建筑产品气味排放的测定(ISO 16000-28-2.pdf DIN ISO 16000-28-2012 Indoor air Part 28 Determination of odour emissions from building products using test chambers (ISO 16000-28 2012)《室内空气 第28部分 使用试验室对建筑产品气味排放的测定(ISO 16000-28-2.pdf
  • DIN ISO 16000-29-2015 Indoor air - Part 29 Test methods for VOC detectors (ISO 16000-29 2014)《室内空气 第29部分 VOC探测器的试验方法 (ISO 16000-29-2014)》.pdf DIN ISO 16000-29-2015 Indoor air - Part 29 Test methods for VOC detectors (ISO 16000-29 2014)《室内空气 第29部分 VOC探测器的试验方法 (ISO 16000-29-2014)》.pdf
  • DIN ISO 16000-3-2013 Indoor air - Part 3 Determination of formaldehyde and other carbonyl compounds in indoor air and test chamber air - Active sampling method (ISO 16000-3 2011)《室.pdf DIN ISO 16000-3-2013 Indoor air - Part 3 Determination of formaldehyde and other carbonyl compounds in indoor air and test chamber air - Active sampling method (ISO 16000-3 2011)《室.pdf
  • DIN ISO 16000-30-2015 Indoor air - Part 30 Sensory testing of indoor air (ISO 16000-30 2014)《室内空气 第30部分 室内空气的感官试验(ISO 16000-30-2014)》.pdf DIN ISO 16000-30-2015 Indoor air - Part 30 Sensory testing of indoor air (ISO 16000-30 2014)《室内空气 第30部分 室内空气的感官试验(ISO 16000-30-2014)》.pdf
  • DIN ISO 16000-31-2014 Indoor air - Part 31 Measurement of flame retardants and plasticizers based on organophosphorus compounds - Phosphoric acid ester (ISO 16000-31 2014)《室内空气 第31.pdf DIN ISO 16000-31-2014 Indoor air - Part 31 Measurement of flame retardants and plasticizers based on organophosphorus compounds - Phosphoric acid ester (ISO 16000-31 2014)《室内空气 第31.pdf
  • DIN ISO 16000-4-2012 Indoor air - Part 4 Determination of formaldehyde - Diffusive sampling method (ISO 16000-4 2011)《室内空气 第4部分 甲醛的测定 分散取样法(ISO 16000-4-2011)》.pdf DIN ISO 16000-4-2012 Indoor air - Part 4 Determination of formaldehyde - Diffusive sampling method (ISO 16000-4 2011)《室内空气 第4部分 甲醛的测定 分散取样法(ISO 16000-4-2011)》.pdf
  • DIN ISO 16000-6-2012 Indoor air - Part 6 Determination of volatile organic compounds in indoor and test chamber air by active sampling on Tenax TA sorbent thermal desorption and ga.pdf DIN ISO 16000-6-2012 Indoor air - Part 6 Determination of volatile organic compounds in indoor and test chamber air by active sampling on Tenax TA sorbent thermal desorption and ga.pdf
  • 相关搜索

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

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