【计算机类职业资格】计算机二级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 EN 12183-2014 Manual wheelchairs - Requirements and test methods German version EN 12183 2014《手动轮椅 要求和测试方法 德文版本EN 12183 2014》.pdf DIN EN 12183-2014 Manual wheelchairs - Requirements and test methods German version EN 12183 2014《手动轮椅 要求和测试方法 德文版本EN 12183 2014》.pdf
  • DIN EN 12184-2014 Electrically powered wheelchairs scooters and their chargers - Requirements and test methods German version EN 12184 2014《电动轮椅 小型摩托车及其充电器 要求和测试方法 德文版本 EN 12184 20.pdf DIN EN 12184-2014 Electrically powered wheelchairs scooters and their chargers - Requirements and test methods German version EN 12184 2014《电动轮椅 小型摩托车及其充电器 要求和测试方法 德文版本 EN 12184 20.pdf
  • DIN EN 12186-2014 Gas infrastructure - Gas pressure regulating stations for transmission and distribution - Functional requirements German version EN 12186 2014《天然气基础设施 输送和分配燃气用气压调.pdf DIN EN 12186-2014 Gas infrastructure - Gas pressure regulating stations for transmission and distribution - Functional requirements German version EN 12186 2014《天然气基础设施 输送和分配燃气用气压调.pdf
  • DIN EN 12188-1999 Products and systems for the protection and repair of concrete structures - Test methods - Determination of adhesion steel-to-steel for characterisation of struct.pdf DIN EN 12188-1999 Products and systems for the protection and repair of concrete structures - Test methods - Determination of adhesion steel-to-steel for characterisation of struct.pdf
  • DIN EN 12189-1999 Products and systems for the protection and repair of concrete structures - Test methods - Determination of open time German version EN 12189 1999《混凝土支承结构防护和维修用产品.pdf DIN EN 12189-1999 Products and systems for the protection and repair of concrete structures - Test methods - Determination of open time German version EN 12189 1999《混凝土支承结构防护和维修用产品.pdf
  • DIN EN 12190-1998 Products and systems for the protection and repair of concrete structures - Test methods - Determination of compressive strength of repair mortar German version E.pdf DIN EN 12190-1998 Products and systems for the protection and repair of concrete structures - Test methods - Determination of compressive strength of repair mortar German version E.pdf
  • DIN EN 12192-1-2002 Products and systems for the protection and repair of concrete structures - Granulometry analysis - Part 1 Test method for dry components of premixed mortar Ger.pdf DIN EN 12192-1-2002 Products and systems for the protection and repair of concrete structures - Granulometry analysis - Part 1 Test method for dry components of premixed mortar Ger.pdf
  • DIN EN 12192-2-1999 Products and systems for the protection and repair of concrete structures - Granulometry analysis - Part 2 Test method for fillers for polymer bonding agents Ge.pdf DIN EN 12192-2-1999 Products and systems for the protection and repair of concrete structures - Granulometry analysis - Part 2 Test method for fillers for polymer bonding agents Ge.pdf
  • DIN EN 12193-2008 Light and lighting - Sports lighting English version of DIN EN 12193 2008-04《光及照明 运动照明》.pdf DIN EN 12193-2008 Light and lighting - Sports lighting English version of DIN EN 12193 2008-04《光及照明 运动照明》.pdf
  • 相关搜索

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

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