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

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

1、计算机二级 JAVA-80 及答案解析(总分: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-80 答案解析(总分: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()

展开阅读全文
相关资源
猜你喜欢
  • ITU-R REPORT BT 2018-1998 Study of the System C Ghost Cancelling Reference Signal for the Evaluation and Correction of Linear Distortion in the Television Chain (15 pp)《电视连锁中删除参考信号.pdf ITU-R REPORT BT 2018-1998 Study of the System C Ghost Cancelling Reference Signal for the Evaluation and Correction of Linear Distortion in the Television Chain (15 pp)《电视连锁中删除参考信号.pdf
  • ITU-R REPORT BT 2020-1-2000 Objective Quality Assessment Technology in a Digital Environment (4 pp)《数码环境中的客观质量评定技术》.pdf ITU-R REPORT BT 2020-1-2000 Objective Quality Assessment Technology in a Digital Environment (4 pp)《数码环境中的客观质量评定技术》.pdf
  • ITU-R REPORT BT 2025-2000 Progress on Development and Implementation of Interactivity in Broadcasting Systems and Services (Question ITU-R 256 11)《广播和服务系统活动的发展与完善的进程》.pdf ITU-R REPORT BT 2025-2000 Progress on Development and Implementation of Interactivity in Broadcasting Systems and Services (Question ITU-R 256 11)《广播和服务系统活动的发展与完善的进程》.pdf
  • ITU-R REPORT BT 2035-2-2008 Guidelines and techniques for the evaluation of digital terrestrial television broadcasting systems including assessment of their coverage areas《含覆盖范围评估.pdf ITU-R REPORT BT 2035-2-2008 Guidelines and techniques for the evaluation of digital terrestrial television broadcasting systems including assessment of their coverage areas《含覆盖范围评估.pdf
  • ITU-R REPORT BT 2036-2003 The problem of unauthorized redistribution of broadcast content via the internet《通过网络将直播内容非法传播的问题》.pdf ITU-R REPORT BT 2036-2003 The problem of unauthorized redistribution of broadcast content via the internet《通过网络将直播内容非法传播的问题》.pdf
  • ITU-R REPORT BT 2042-4-2010 Technologies in the area of extremely high resolution imagery《在影像极高分辨率区域的技术》.pdf ITU-R REPORT BT 2042-4-2010 Technologies in the area of extremely high resolution imagery《在影像极高分辨率区域的技术》.pdf
  • ITU-R REPORT BT 2043-2004 Analogue television systems currently in use throughout the world《目前世界上使用的模拟电视系统》.pdf ITU-R REPORT BT 2043-2004 Analogue television systems currently in use throughout the world《目前世界上使用的模拟电视系统》.pdf
  • ITU-R REPORT BT 2044-2004 Tolerable round-trip time delay for sound-programme and television broadcast programme inserts C Context and rationale《声音节目和电视广播节目插播的可容忍往返传播延迟时间的 背景和基本原理》.pdf ITU-R REPORT BT 2044-2004 Tolerable round-trip time delay for sound-programme and television broadcast programme inserts C Context and rationale《声音节目和电视广播节目插播的可容忍往返传播延迟时间的 背景和基本原理》.pdf
  • ITU-R REPORT BT 2049-4-2010 Broadcasting of multimedia and data applications for mobile reception《移动接收用多媒体和数据应用广播》.pdf ITU-R REPORT BT 2049-4-2010 Broadcasting of multimedia and data applications for mobile reception《移动接收用多媒体和数据应用广播》.pdf
  • 相关搜索

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

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