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

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

1、计算机二级 JAVA-104 及答案解析(总分:100.00,做题时间:90 分钟)一、综合应用题(总题数:3,分数:100.00)1.本程序中,主窗口中有“Start”和“Close”两个按钮,单击“Start”按钮后会在窗口左上角生成一个黑色实心小球,小球做斜线运动,碰到面板边缘后反弹几次后停止运动,再次单击“Start”按钮后又会生成一个小球做同样的运动,如图所示。 (分数:33.00)_2.本程序的功能是在窗口上绘制了 6 个不同地区的时钟,如图所示。 (分数:33.00)_3.本程序的功能是列出了一些异常情况的输出。窗口中有一个单选按钮组和一个文本框,选中其中一个单选按钮,就可以将其

2、对应的异常输入显示在文本框中,如图所示。 (分数:34.00)_计算机二级 JAVA-104 答案解析(总分:100.00,做题时间:90 分钟)一、综合应用题(总题数:3,分数:100.00)1.本程序中,主窗口中有“Start”和“Close”两个按钮,单击“Start”按钮后会在窗口左上角生成一个黑色实心小球,小球做斜线运动,碰到面板边缘后反弹几次后停止运动,再次单击“Start”按钮后又会生成一个小球做同样的运动,如图所示。 (分数:33.00)_正确答案:()解析:第 1 处:public void addButton(Container c, String title, Actio

3、nListener listener) 第 2 处:Thread.Sleep(5) 第 3 处:class BallCanvas extends JPanel2.本程序的功能是在窗口上绘制了 6 个不同地区的时钟,如图所示。 (分数:33.00)_正确答案:()解析:第 1 处:frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE) 第 2 处:public ClockCanvas(String tz) 第 3 处:t.start()3.本程序的功能是列出了一些异常情况的输出。窗口中有一个单选按钮组和一个文本框,选中其中一个单选按钮,就可以将其对应的异常输入显示在文本框中,如图所示。 (分数:34.00)_正确答案:()解析:第 1 处:public ExceptTestPanel() 第 2 处:protected void fireActionPerformed(Actiongvent event) 第 3 处:group.add(button)

展开阅读全文
相关资源
猜你喜欢
  • DIN 25195-2003 Railway vehicles - Countersunk bolts with double nip with metric ISO thread - Class C《铁路车辆 带ISO米制螺纹的双接口沉头螺栓 C级》.pdf DIN 25195-2003 Railway vehicles - Countersunk bolts with double nip with metric ISO thread - Class C《铁路车辆 带ISO米制螺纹的双接口沉头螺栓 C级》.pdf
  • DIN 25200-1997 Screws bolts and nuts for rail vehicles - Summary《铁路车辆用螺钉、螺栓和螺母 一览表》.pdf DIN 25200-1997 Screws bolts and nuts for rail vehicles - Summary《铁路车辆用螺钉、螺栓和螺母 一览表》.pdf
  • DIN 25201-1-2015 Design guide for railway vehicles and their components - Bolted joints - Part 1 Classification of bolted joints《铁路车辆及其组件的设计指南 螺栓连接 第1部分 螺栓连接的分类》.pdf DIN 25201-1-2015 Design guide for railway vehicles and their components - Bolted joints - Part 1 Classification of bolted joints《铁路车辆及其组件的设计指南 螺栓连接 第1部分 螺栓连接的分类》.pdf
  • DIN 25201-2-2015 Design guide for railway vehicles and their components - Bolted joints - Part 2 Design - Mechanical applications《铁路车辆及其组件的设计指南 螺栓连接 第2部分 设计 机械应用》.pdf DIN 25201-2-2015 Design guide for railway vehicles and their components - Bolted joints - Part 2 Design - Mechanical applications《铁路车辆及其组件的设计指南 螺栓连接 第2部分 设计 机械应用》.pdf
  • DIN 25201-3-2004 Design guide for railway vehicles and their components - Bolted joints - Part 3 Design - Electrical application《铁路车辆及其组件的设计指南 螺栓连接 第3部分 设计 电气应用》.pdf DIN 25201-3-2004 Design guide for railway vehicles and their components - Bolted joints - Part 3 Design - Electrical application《铁路车辆及其组件的设计指南 螺栓连接 第3部分 设计 电气应用》.pdf
  • DIN 25201-4-2004 Design guide for railway vehicles and their components - Bolted joints - Part 4 Securing of bolted joints《铁路车辆及其组件的设计指南 螺栓连接 第4部分 螺栓连接的安全》.pdf DIN 25201-4-2004 Design guide for railway vehicles and their components - Bolted joints - Part 4 Securing of bolted joints《铁路车辆及其组件的设计指南 螺栓连接 第4部分 螺栓连接的安全》.pdf
  • DIN 25201-5-2005 Design guide for railway vehicles and their components - Bolted joints - Part 5 Protection against corrosion《铁路车辆及其组件的设计指南 螺栓连接 第5部分 防腐蚀》.pdf DIN 25201-5-2005 Design guide for railway vehicles and their components - Bolted joints - Part 5 Protection against corrosion《铁路车辆及其组件的设计指南 螺栓连接 第5部分 防腐蚀》.pdf
  • DIN 25201-6-2015 Design guide for railway vehicles and their components - Bolted joints - Part 6 Connecting dimensions《铁路车辆及其组件的设计指南 螺栓连接 第6部分 连接尺寸》.pdf DIN 25201-6-2015 Design guide for railway vehicles and their components - Bolted joints - Part 6 Connecting dimensions《铁路车辆及其组件的设计指南 螺栓连接 第6部分 连接尺寸》.pdf
  • DIN 25201-7 Berichtigung 1-2007 Design guide for railway vehicles and their components - Bolted joints - Part 7 Installation Corrigenda to DIN 25201-7 2004-06《铁路车辆及其组件的设计指南 螺栓连接件 第.pdf DIN 25201-7 Berichtigung 1-2007 Design guide for railway vehicles and their components - Bolted joints - Part 7 Installation Corrigenda to DIN 25201-7 2004-06《铁路车辆及其组件的设计指南 螺栓连接件 第.pdf
  • 相关搜索

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

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