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

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

1、计算机二级 JAVA-88 及答案解析(总分:100.00,做题时间:90 分钟)一、综合应用题(总题数:3,分数:100.00)1.本程序中有两个 Applet: exam_47 和 exam_47_Bullet,exam_47 用来选择颜色,而 exam_47_Bullet 则获得设定的颜色画对应颜色的圆,如图所示。 (分数:33.00)_2.本程序是一个计时器。窗口中有一个文字标签和“复位”、“开始”和“暂停”三个按钮,初始状态时只有“开始”按钮可用,单击该按钮开始计时,并且“开始”按钮的标签变为“继续”且不可用,“暂停”按钮变为可用,单击“暂停”按钮后“暂停”按钮变为不可用,“复位”和

2、继续”按钮变为可用,此时如果单击“复位”按钮将恢复到初始状态,如果单击“继续”按钮将继续进行计数,如图所示。 (分数:33.00)_3.本程序中,主窗口中有一个面板和三个按钮,初始状态三个按钮上有三个不同颜色的圆,并且三个圆同频率地填充或空缺,单击其中一个按钮后,面板的颜色变为按钮上图形的颜色,同时该按钮上的圆形变为空心,且不再自动变为填充,如图所示。 (分数:34.00)_计算机二级 JAVA-88 答案解析(总分:100.00,做题时间:90 分钟)一、综合应用题(总题数:3,分数:100.00)1.本程序中有两个 Applet: exam_47 和 exam_47_Bullet,exa

3、m_47 用来选择颜色,而 exam_47_Bullet 则获得设定的颜色画对应颜色的圆,如图所示。 (分数:33.00)_正确答案:()解析:第 1 处:Object arg=evt.getItem() 第 2 处:Applet a = (Applet)e.nextElement() 第 3 处:advance applet = (advance)getAppletContext().getApplet(“advance“)2.本程序是一个计时器。窗口中有一个文字标签和“复位”、“开始”和“暂停”三个按钮,初始状态时只有“开始”按钮可用,单击该按钮开始计时,并且“开始”按钮的标签变为“继续”

4、且不可用,“暂停”按钮变为可用,单击“暂停”按钮后“暂停”按钮变为不可用,“复位”和“继续”按钮变为可用,此时如果单击“复位”按钮将恢复到初始状态,如果单击“继续”按钮将继续进行计数,如图所示。 (分数:33.00)_正确答案:()解析:第 1 处:public class advance extends Frame implements Runnable 第 2 处:btStop.setEnabled(false) 第 3 处:advance.this.stop()3.本程序中,主窗口中有一个面板和三个按钮,初始状态三个按钮上有三个不同颜色的圆,并且三个圆同频率地填充或空缺,单击其中一个按钮后,面板的颜色变为按钮上图形的颜色,同时该按钮上的圆形变为空心,且不再自动变为填充,如图所示。 (分数:34.00)_正确答案:()解析:第 1 处:Color colorValues = Color.red, Color.green, Color.blue 第 2 处:buttonsi.addActionListener(this) 第 3 处:class MainButton extends Canvas implements Runnable

展开阅读全文
相关资源
猜你喜欢
  • BS ISO 18835-2015 Inhalational anaesthesia systems Draw-over anaesthetic systems《吸入式麻醉剂系统 气流抽吸型麻醉系统》.pdf BS ISO 18835-2015 Inhalational anaesthesia systems Draw-over anaesthetic systems《吸入式麻醉剂系统 气流抽吸型麻醉系统》.pdf
  • BS ISO 18842-2015 Aluminium oxide primarily used for the production of aluminium Method for the determination of tapped and untapped density《主要用于生产铝的铝氧化物 振实和未振实密度的测定方法》.pdf BS ISO 18842-2015 Aluminium oxide primarily used for the production of aluminium Method for the determination of tapped and untapped density《主要用于生产铝的铝氧化物 振实和未振实密度的测定方法》.pdf
  • BS ISO 18843-2015 Aluminium oxide primarily used for the production of aluminium Method for the determination of flow time《主要用于铝生产的氧化铝 流动时间的测定方法》.pdf BS ISO 18843-2015 Aluminium oxide primarily used for the production of aluminium Method for the determination of flow time《主要用于铝生产的氧化铝 流动时间的测定方法》.pdf
  • BS ISO 18844-2017 Photography Digital cameras Image flare measurement《摄影 数码相机 图像光晕测量》.pdf BS ISO 18844-2017 Photography Digital cameras Image flare measurement《摄影 数码相机 图像光晕测量》.pdf
  • BS ISO 18851-2015 Plastics piping systems Glass-reinforced thermosetting plastics (GRP) pipes and fittings Test method to prove the structural design of fittings《塑料管系统 玻璃增强热固性塑料 (G.pdf BS ISO 18851-2015 Plastics piping systems Glass-reinforced thermosetting plastics (GRP) pipes and fittings Test method to prove the structural design of fittings《塑料管系统 玻璃增强热固性塑料 (G.pdf
  • BS ISO 18852-2015 Rubber compounding ingredients Determination of multipoint nitrogen surface area (NSA) and statistical thickness surface area (STSA)《橡胶配合料 多点氮表面面积(NSA)和统计厚度表面面积(S.pdf BS ISO 18852-2015 Rubber compounding ingredients Determination of multipoint nitrogen surface area (NSA) and statistical thickness surface area (STSA)《橡胶配合料 多点氮表面面积(NSA)和统计厚度表面面积(S.pdf
  • BS ISO 18862-2016 Coffee and coffee products Determination of acrylamide Methods using HPLC-MS MS and GC-MS after derivatization《咖啡和咖啡制品 丙烯酰胺的测定 衍生后使用HPLC-MS MS和GC-MS法》.pdf BS ISO 18862-2016 Coffee and coffee products Determination of acrylamide Methods using HPLC-MS MS and GC-MS after derivatization《咖啡和咖啡制品 丙烯酰胺的测定 衍生后使用HPLC-MS MS和GC-MS法》.pdf
  • BS ISO 18868-2013 Commercial road vehicles Coupling equipment between vehicles in multiple vehicle combinations Strength requirements《商用道路车辆 并联车辆组合中的车辆间耦合装置 强度要求》.pdf BS ISO 18868-2013 Commercial road vehicles Coupling equipment between vehicles in multiple vehicle combinations Strength requirements《商用道路车辆 并联车辆组合中的车辆间耦合装置 强度要求》.pdf
  • BS ISO 18869-2017 Hydraulic fluid power Test methods for couplings actuated with or without tools《液压流体动力 有或没有工具驱动的联轴器的试验方法》.pdf BS ISO 18869-2017 Hydraulic fluid power Test methods for couplings actuated with or without tools《液压流体动力 有或没有工具驱动的联轴器的试验方法》.pdf
  • 相关搜索

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

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