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

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

1、计算机二级 JAVA-92 及答案解析(总分:100.00,做题时间:90 分钟)一、综合应用题(总题数:3,分数:100.00)1.本程序是一个 Applet,功能是在鼠标点击的位置画一个红色的实心圆。当鼠标在矩形画板里点击时,就可以以点击的点为圆心画圆,如图所示。 (分数:33.00)_2.本程序的功能是用键盘上的方向键来控制直线的绘制方向。如果一直按下向上的方向键,则在窗口中从焦点开始向上缓慢绘制直线,按下其他方向的方向键也会向对应的方向缓慢的绘制直线,如果按下 Shift键,绘制直线的速度会加快,如图所示。 (分数:33.00)_3.本程序的功能是用文本框来设定表盘中指针的位置。窗口中

2、有一个画板和两个文本框,画板中绘制了一个表盘和时针、分针,通过文本框分别设定时和分,表盘中的时、分指针就会指到对应的位置上,如图所示。 (分数:34.00)_计算机二级 JAVA-92 答案解析(总分:100.00,做题时间:90 分钟)一、综合应用题(总题数:3,分数:100.00)1.本程序是一个 Applet,功能是在鼠标点击的位置画一个红色的实心圆。当鼠标在矩形画板里点击时,就可以以点击的点为圆心画圆,如图所示。 (分数:33.00)_正确答案:()解析:第 1 处:extends Applet implements MouseListener 第 2 处:addMouseListen

3、er(this) 第 3 处:public void mousePressed(MouseEvent event)2.本程序的功能是用键盘上的方向键来控制直线的绘制方向。如果一直按下向上的方向键,则在窗口中从焦点开始向上缓慢绘制直线,按下其他方向的方向键也会向对应的方向缓慢的绘制直线,如果按下 Shift键,绘制直线的速度会加快,如图所示。 (分数:33.00)_正确答案:()解析:第 1 处:public SketchPanel() 第 2 处:addKeyListener(listener) 第 3 处:int keyCode = event.getKeyCode()3.本程序的功能是用文本框来设定表盘中指针的位置。窗口中有一个画板和两个文本框,画板中绘制了一个表盘和时针、分针,通过文本框分别设定时和分,表盘中的时、分指针就会指到对应的位置上,如图所示。 (分数:34.00)_正确答案:()解析:第 1 处:DocumentListener listener = new ClockFieldListener() 第 2 处:hourField.getDocument().addDocumentListener(listener) 第 3 处:private class CIockFieldListener implements DocumentListener

展开阅读全文
相关资源
猜你喜欢
  • DIN EN 13245-1-2010 Plastics - Unplasticized poly(vinyl chloride) (PVC-U) profiles for building applications - Part 1 Designation of PVC-U profiles German version EN 13245-1 2010《塑.pdf DIN EN 13245-1-2010 Plastics - Unplasticized poly(vinyl chloride) (PVC-U) profiles for building applications - Part 1 Designation of PVC-U profiles German version EN 13245-1 2010《塑.pdf
  • DIN EN 13245-2-2010 Plastics - Unplasticized poly(vinyl chloride) (PVC-U) profiles for building applications - Part 2 PVC-U profiles and PVC-UE profiles for internal and external w.pdf DIN EN 13245-2-2010 Plastics - Unplasticized poly(vinyl chloride) (PVC-U) profiles for building applications - Part 2 PVC-U profiles and PVC-UE profiles for internal and external w.pdf
  • DIN EN 13245-3-2010 Plastics - Unplasticized poly(vinyl chloride) (PVC-U) profiles for building applications - Part 3 Designation of PVC-UE profiles German version EN 13245-3 2010《.pdf DIN EN 13245-3-2010 Plastics - Unplasticized poly(vinyl chloride) (PVC-U) profiles for building applications - Part 3 Designation of PVC-UE profiles German version EN 13245-3 2010《.pdf
  • DIN EN 13246-2001 Packaging - Specification for tensional steel strapping German version EN 13246 2001《包装 捆绑钢带规范》.pdf DIN EN 13246-2001 Packaging - Specification for tensional steel strapping German version EN 13246 2001《包装 捆绑钢带规范》.pdf
  • DIN EN 13247-2001 Packaging - Specification for tensional steel strapping for lifting lashing and securing of loads German version EN 13247 2001《包装 道路安全绳索升降梯捆绑钢带规范》.pdf DIN EN 13247-2001 Packaging - Specification for tensional steel strapping for lifting lashing and securing of loads German version EN 13247 2001《包装 道路安全绳索升降梯捆绑钢带规范》.pdf
  • DIN EN 13248-2003 Cookware - Coffee makers for domestic use with an independent heat source - Definitions requirements and test methods German version EN 13248 2002《烹饪器具 带独立加热源的家用煮.pdf DIN EN 13248-2003 Cookware - Coffee makers for domestic use with an independent heat source - Definitions requirements and test methods German version EN 13248 2002《烹饪器具 带独立加热源的家用煮.pdf
  • DIN EN 13249-2016 Geotextiles and geotextile-related products - Characteristics required for use in the construction of roads and other trafficked areas (excluding railways and asp.pdf DIN EN 13249-2016 Geotextiles and geotextile-related products - Characteristics required for use in the construction of roads and other trafficked areas (excluding railways and asp.pdf
  • DIN EN 1325-2014 Value Management - Vocabulary - Terms and definitions German version EN 1325 2014《价值管理 词汇 术语和定义 德文版本EN 1325-2014》.pdf DIN EN 1325-2014 Value Management - Vocabulary - Terms and definitions German version EN 1325 2014《价值管理 词汇 术语和定义 德文版本EN 1325-2014》.pdf
  • DIN EN 13250-2016 Geotextiles and geotextile-related products - Characteristics required for use in the construction of railways German version EN 13250 2016《土工织物和相关制品 铁路施工需使用的特征 德.pdf DIN EN 13250-2016 Geotextiles and geotextile-related products - Characteristics required for use in the construction of railways German version EN 13250 2016《土工织物和相关制品 铁路施工需使用的特征 德.pdf
  • 相关搜索

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

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