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

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

1、计算机二级 JAVA-101 及答案解析(总分:100.00,做题时间:90 分钟)一、综合应用题(总题数:3,分数:100.00)1.本程序的功能是用鼠标在面板上画椭圆形。窗口中有一个黄色的面板,鼠标置于黄色面板时拖动,可绘制出椭圆形,如图所示。 (分数:33.00)_2.本程序的功能是监听鼠标左右键的点击,以及面板中滚动条的添加。在窗口的画板中单击鼠标左键,在单击的位置绘制一个圆,当绘制的圆大于画板的大小时,画板就添加滚动条,在画板中单击鼠标右键,则清除画板中的所有图形,如图所示。 (分数:33.00)_3.本程序的功能是用滑动条来控制画板中圆的大小。窗口中有一个画板和一个滑动条,画板中有

2、一个黑色的实心圆,当拖动滑条上的滑块时,画板中圆的大小随之改变,如图所示。 (分数:34.00)_计算机二级 JAVA-101 答案解析(总分:100.00,做题时间:90 分钟)一、综合应用题(总题数:3,分数:100.00)1.本程序的功能是用鼠标在面板上画椭圆形。窗口中有一个黄色的面板,鼠标置于黄色面板时拖动,可绘制出椭圆形,如图所示。 (分数:33.00)_正确答案:()解析:第 1 处:myPanel=new SelfContainedPanel() 第 2 处:public SelfContainedPanel() 第 3 处:super.paintComponent( g )2.

3、本程序的功能是监听鼠标左右键的点击,以及面板中滚动条的添加。在窗口的画板中单击鼠标左键,在单击的位置绘制一个圆,当绘制的圆大于画板的大小时,画板就添加滚动条,在画板中单击鼠标右键,则清除画板中的所有图形,如图所示。 (分数:33.00)_正确答案:()解析:第 1 处:drawingArea.addMouseListener(new MyMouseListener() 第 2 处:class MyMouseListener extends MouseInputAdapter 第 3 处:drawingArea.repaint()3.本程序的功能是用滑动条来控制画板中圆的大小。窗口中有一个画板和一个滑动条,画板中有一个黑色的实心圆,当拖动滑条上的滑块时,画板中圆的大小随之改变,如图所示。 (分数:34.00)_正确答案:()解析:第 1 处:diameter.addChangeListener( new ChangeListener() 第 2 处:super.paintComponent( g ) 第 3 处:public void setDiameter( int d )

展开阅读全文
相关资源
猜你喜欢
  • JIS B 2355-3-2000 Connections for fluid power and general use -- Ports and stud ends with ISO 261 threads and O-ring sealing -- Part 3 Light-duty (L series) stu.pdf JIS B 2355-3-2000 Connections for fluid power and general use -- Ports and stud ends with ISO 261 threads and O-ring sealing -- Part 3 Light-duty (L series) stu.pdf
  • JIS B 2356-1-2001 Connections for general use and fluid power -- Ports and stud ends with ISO 261 threads with elastomeric or metal-to-metal sealing -- Part 1 T.pdf JIS B 2356-1-2001 Connections for general use and fluid power -- Ports and stud ends with ISO 261 threads with elastomeric or metal-to-metal sealing -- Part 1 T.pdf
  • JIS B 2356-2-2000 Connections for general use and fluid power -- Ports and stud ends with ISO 261 threads with elastomeric or metal-to-metal sealing -- Part 2 S.pdf JIS B 2356-2-2000 Connections for general use and fluid power -- Ports and stud ends with ISO 261 threads with elastomeric or metal-to-metal sealing -- Part 2 S.pdf
  • JIS B 2358-1-2001 Connections for general use and fluid power -- Ports and stud ends with ISO 725 threads and O-ring sealing -- Part 1 Ports with O-ring seal in.pdf JIS B 2358-1-2001 Connections for general use and fluid power -- Ports and stud ends with ISO 725 threads and O-ring sealing -- Part 1 Ports with O-ring seal in.pdf
  • JIS B 2401-2-2012 0625 O-Rings -- Part 2 Housing dimensions and sizes《O型密封圈 第2部分 外壳尺寸规格》.pdf JIS B 2401-2-2012 0625 O-Rings -- Part 2 Housing dimensions and sizes《O型密封圈 第2部分 外壳尺寸规格》.pdf
  • JIS B 2401-4-2012 5000 O-rings -- Part 4 Anti-extrusion rings (back-up rings)《O型密封圈 第4部分 抗挤压密封圈(支撑密封圈)》.pdf JIS B 2401-4-2012 5000 O-rings -- Part 4 Anti-extrusion rings (back-up rings)《O型密封圈 第4部分 抗挤压密封圈(支撑密封圈)》.pdf
  • JIS B 2402-1-2013 9375 Rotary shaft lip-type seals incorporating elastomeric sealing elements -- Part 1 Nominal dimensions and tolerances《组合弹性密封元件的旋转轴唇型密封件 第1部分.pdf JIS B 2402-1-2013 9375 Rotary shaft lip-type seals incorporating elastomeric sealing elements -- Part 1 Nominal dimensions and tolerances《组合弹性密封元件的旋转轴唇型密封件 第1部分.pdf
  • JIS B 2402-2-2013 6875 Rotary shaft lip-type seals incorporating elastomeric sealing elements -- Part 2 Vocabulary《组合弹性密封元件的旋转轴唇型密封件 第2部分 词汇表》.pdf JIS B 2402-2-2013 6875 Rotary shaft lip-type seals incorporating elastomeric sealing elements -- Part 2 Vocabulary《组合弹性密封元件的旋转轴唇型密封件 第2部分 词汇表》.pdf
  • JIS B 2402-3-2013 5625 Rotary shaft lip-type seals incorporating elastomeric sealing elements -- Part 3 Storage handling and installation《组合弹性密封元件的旋转轴唇型密封件 第3部分.pdf JIS B 2402-3-2013 5625 Rotary shaft lip-type seals incorporating elastomeric sealing elements -- Part 3 Storage handling and installation《组合弹性密封元件的旋转轴唇型密封件 第3部分.pdf
  • 相关搜索

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

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