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

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

1、计算机二级 JAVA-91 及答案解析(总分:100.00,做题时间:90 分钟)一、综合应用题(总题数:3,分数:100.00)1.本程序的功能是监听鼠标在窗口中的位置。程序窗口中绘制了多条长短不一、颜色深浅不同的水平矩形,当鼠标在这些矩形上单击时,被点击的矩形颜色变成红色,当点击的矩形改变时,原来的矩形恢复初始时的颜色,如图所示。 (分数:33.00)_2.本程序中,主窗口中有两个下拉菜单,一个控制所绘制图形的颜色,一个控制所绘制的图形,在画板中单击鼠标,则以单击的位置为左上角,以选定的颜色绘制选定的图形,如图所示。 (分数:33.00)_3.本程序的功能是绘制一个椭圆形的按钮,当鼠标在按

2、钮上单击时,按钮的文字标签和边框变成红色,如图所示。 (分数:34.00)_计算机二级 JAVA-91 答案解析(总分:100.00,做题时间:90 分钟)一、综合应用题(总题数:3,分数:100.00)1.本程序的功能是监听鼠标在窗口中的位置。程序窗口中绘制了多条长短不一、颜色深浅不同的水平矩形,当鼠标在这些矩形上单击时,被点击的矩形颜色变成红色,当点击的矩形改变时,原来的矩形恢复初始时的颜色,如图所示。 (分数:33.00)_正确答案:()解析:第 1 处:sb.addAdjustmentListener(this) 第 2 处:class MainCanvas extends Compo

3、nent 第 3 处:double values = new double1002.本程序中,主窗口中有两个下拉菜单,一个控制所绘制图形的颜色,一个控制所绘制的图形,在画板中单击鼠标,则以单击的位置为左上角,以选定的颜色绘制选定的图形,如图所示。 (分数:33.00)_正确答案:()解析:第 1 处:addMouseListener(new MouseEventListener() 第 2 处:g.setColor(colorValueschColor.getSelectedIndex() 第 3 处:class MouseEventListener extends MouseAdapter3.本程序的功能是绘制一个椭圆形的按钮,当鼠标在按钮上单击时,按钮的文字标签和边框变成红色,如图所示。 (分数:34.00)_正确答案:()解析:第 1 处:new advance() 第 2 处:class MouseEventHandler extends MouseAdapter 第 3 处:public void paint(Graphics g)

展开阅读全文
相关资源
猜你喜欢
  • DIN CEN TR 16589-2014 Laboratory installations - Capture devices with articulated extract arm German version CEN TR 16589 2013《实验室装置 带铰接提取臂的捕捉装置 德文版本CEN TR 16589-2013》.pdf DIN CEN TR 16589-2014 Laboratory installations - Capture devices with articulated extract arm German version CEN TR 16589 2013《实验室装置 带铰接提取臂的捕捉装置 德文版本CEN TR 16589-2013》.pdf
  • DIN CEN TR 16596-2014 Electric-electronic interface between chassis-cab and bodywork of refuse collection vehicles (RCVs) German version CEN TR 16596 2013《垃圾收集车辆(RCV)带底盘驾驶室和车身之间的电力.pdf DIN CEN TR 16596-2014 Electric-electronic interface between chassis-cab and bodywork of refuse collection vehicles (RCVs) German version CEN TR 16596 2013《垃圾收集车辆(RCV)带底盘驾驶室和车身之间的电力.pdf
  • DIN CEN TR 16625-2014 Flexible sheets for waterproofing - Statistical definition of manufacturer-s limiting value and declared value (MLV and MDV) - 95 % Statistic German version C.pdf DIN CEN TR 16625-2014 Flexible sheets for waterproofing - Statistical definition of manufacturer-s limiting value and declared value (MLV and MDV) - 95 % Statistic German version C.pdf
  • DIN CEN TR 16626-2014 Vitrified clay pipe systems for drains and sewers - Guidance for voluntary third-party certification procedures German version CEN TR 16626 2014《下水道和污水道用陶土管系统.pdf DIN CEN TR 16626-2014 Vitrified clay pipe systems for drains and sewers - Guidance for voluntary third-party certification procedures German version CEN TR 16626 2014《下水道和污水道用陶土管系统.pdf
  • DIN CEN TR 16638-2014 Non-destructive testing - Penetrant and magnetic particle testing using blue light German version CEN TR 16638 2014《无损检测 使用蓝光进行的渗透和磁粉检测 德文版本CEN TR 16638-2014》.pdf DIN CEN TR 16638-2014 Non-destructive testing - Penetrant and magnetic particle testing using blue light German version CEN TR 16638 2014《无损检测 使用蓝光进行的渗透和磁粉检测 德文版本CEN TR 16638-2014》.pdf
  • DIN CEN TR 16710-1-2017 Ergonomics methods - Part 1 Feedback method - A method to understand how end users perform their work with machines German version CEN TR 16710-1 2015.pdf DIN CEN TR 16710-1-2017 Ergonomics methods - Part 1 Feedback method - A method to understand how end users perform their work with machines German version CEN TR 16710-1 2015.pdf
  • DIN CEN TR 17055-2017 Workplace exposure - Measurement of chemical agents complying with the requirements given in EN 482 and either one of EN 838 EN 1076 EN 13205 EN 13890 and EN .pdf DIN CEN TR 17055-2017 Workplace exposure - Measurement of chemical agents complying with the requirements given in EN 482 and either one of EN 838 EN 1076 EN 13205 EN 13890 and EN .pdf
  • DIN CEN TR 614-3-2011 Safety of machinery - Part 3 Ergonomic principles for the design of mobile machinery German version CEN TR 614-3 2010《机械安全性 第3部分 移动机械的设计用人类工效学原则 德文版本 CEN TR 6.pdf DIN CEN TR 614-3-2011 Safety of machinery - Part 3 Ergonomic principles for the design of mobile machinery German version CEN TR 614-3 2010《机械安全性 第3部分 移动机械的设计用人类工效学原则 德文版本 CEN TR 6.pdf
  • DIN CEN TR 764-6-2013 Pressure equipment - Part 6 Structure and content of operating instructions German version CEN TR 764-6 2012《压力设备 第6部分 操作指令的结构和内容 德文版本CEN TR 764-6-2012》.pdf DIN CEN TR 764-6-2013 Pressure equipment - Part 6 Structure and content of operating instructions German version CEN TR 764-6 2012《压力设备 第6部分 操作指令的结构和内容 德文版本CEN TR 764-6-2012》.pdf
  • 相关搜索

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

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