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

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

1、计算机二级 JAVA-133 (1)及答案解析(总分:100.00,做题时间:90 分钟)一、基本操作题(总题数:1,分数:40.00)1.本程序定义了长度为 20 的一维整型数组 a,并将数组元素的下标值赋给数组元素,最后打印输出数组中下标为奇数的元素。 public class exam_100 public static void main(String args) int a=_; int i; for(_;i+) ai=i; for(i=0;i20;i+) if(_) System.out.print(“a“+i+“=“+ai+“,“); (分数:40.00)_二、简单应用题(总题数

2、2,分数:60.00)2.本程序的功能是:单击窗口左上角的 File 菜单中的 Open 菜单,打开一个 Gif 图像文件,并将图像文件显示在窗口中。单击 File 菜单中的 Exit 命令,能够退出程序,如图所示。 (分数:30.00)_3.本程序的功能是在文本框中输入姓名,单击“确定”按钮后,文本框的下面就会显示欢迎信息“XX,欢迎你加入到 Java 学习的行列!”(其中 XX 为输入的姓名),如图所示。 (分数:30.00)_计算机二级 JAVA-133 (1)答案解析(总分:100.00,做题时间:90 分钟)一、基本操作题(总题数:1,分数:40.00)1.本程序定义了长度为 20

3、 的一维整型数组 a,并将数组元素的下标值赋给数组元素,最后打印输出数组中下标为奇数的元素。 public class exam_100 public static void main(String args) int a=_; int i; for(_;i+) ai=i; for(i=0;i20;i+) if(_) System.out.print(“a“+i+“=“+ai+“,“); (分数:40.00)_正确答案:()解析:第 1 处:new int20 第 2 处:i=0;i20 第 3 处:i%2!=0二、简单应用题(总题数:2,分数:60.00)2.本程序的功能是:单击窗口左上角的 File 菜单中的 Open 菜单,打开一个 Gif 图像文件,并将图像文件显示在窗口中。单击 File 菜单中的 Exit 命令,能够退出程序,如图所示。 (分数:30.00)_正确答案:()解析:第 1 处:new ImageIcon(name) 第 2 处:frame.show()3.本程序的功能是在文本框中输入姓名,单击“确定”按钮后,文本框的下面就会显示欢迎信息“XX,欢迎你加入到 Java 学习的行列!”(其中 XX 为输入的姓名),如图所示。 (分数:30.00)_正确答案:()解析:第 1 处:panel 第 2 处:new ActionListener()

展开阅读全文
相关资源
猜你喜欢
  • BS EN ISO 9377-2-2000 Water quality Determination of hydrocarbon oil index Method using solvent extraction and gas chromatography《水质 烃油指数的测定 利用溶剂萃取法和气相色谱法的测定方法》.pdf BS EN ISO 9377-2-2000 Water quality Determination of hydrocarbon oil index Method using solvent extraction and gas chromatography《水质 烃油指数的测定 利用溶剂萃取法和气相色谱法的测定方法》.pdf
  • BS EN ISO 9394-2012 Ophthalmic optics Contact lenses and contact lens care products Determination of biocompatibility by ocular study with rabbit eyes《眼科光学 接触镜片和接触镜片护理产品 通过兔眼视觉研究测定.pdf BS EN ISO 9394-2012 Ophthalmic optics Contact lenses and contact lens care products Determination of biocompatibility by ocular study with rabbit eyes《眼科光学 接触镜片和接触镜片护理产品 通过兔眼视觉研究测定.pdf
  • BS EN ISO 9396-2001 Plastics - Phenolic resins - Determination of the gel time at a given temperature using automatic apparatus《塑料 酚醛树脂 用自动装置测定在给定温度下的凝胶时间》.pdf BS EN ISO 9396-2001 Plastics - Phenolic resins - Determination of the gel time at a given temperature using automatic apparatus《塑料 酚醛树脂 用自动装置测定在给定温度下的凝胶时间》.pdf
  • BS EN ISO 9400-1996 Nickel-based alloys Determination of resistance to intergranular corrosion《镍基合金 抗晶间腐蚀性的测定》.pdf BS EN ISO 9400-1996 Nickel-based alloys Determination of resistance to intergranular corrosion《镍基合金 抗晶间腐蚀性的测定》.pdf
  • BS EN ISO 9408-1999 Water quality - Evaluation of ultimate aerobic biodegradability of organic compounds in aqueous medium by determination of oxygen demand in a closed respiromete.pdf BS EN ISO 9408-1999 Water quality - Evaluation of ultimate aerobic biodegradability of organic compounds in aqueous medium by determination of oxygen demand in a closed respiromete.pdf
  • BS EN ISO 9409-1-2004 Manipulating industrial robots - Mechanical interfaces - Plates《操作型工业机器人 机械接口 板型》.pdf BS EN ISO 9409-1-2004 Manipulating industrial robots - Mechanical interfaces - Plates《操作型工业机器人 机械接口 板型》.pdf
  • BS EN ISO 9409-2-2004 Manipulating industrial robots - Mechanical interfaces - Shafts《操作型工业机器人 机械接口 轴》.pdf BS EN ISO 9409-2-2004 Manipulating industrial robots - Mechanical interfaces - Shafts《操作型工业机器人 机械接口 轴》.pdf
  • BS EN ISO 9431-1999 Construction drawings Spaces for drawing and for text and title blocks on drawing sheets《建筑图纸 图和正文的间隔 图纸上的标题栏》.pdf BS EN ISO 9431-1999 Construction drawings Spaces for drawing and for text and title blocks on drawing sheets《建筑图纸 图和正文的间隔 图纸上的标题栏》.pdf
  • BS EN ISO 9439-2001 Water quality - Evaluation of ultimate aerobic biodegradability of organic compounds in aqueous medium - Carbon dioxide evolution test《水质 水介质中有机化合物最终有氧生物降解能力性的评.pdf BS EN ISO 9439-2001 Water quality - Evaluation of ultimate aerobic biodegradability of organic compounds in aqueous medium - Carbon dioxide evolution test《水质 水介质中有机化合物最终有氧生物降解能力性的评.pdf
  • 相关搜索

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

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