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

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

1、计算机二级 JAVA-171 (1)及答案解析(总分:100.00,做题时间:90 分钟)一、综合应用题(总题数:3,分数:100.00)1.本程序是一个 Applet,功能是更改显示的图片。页面中有一个“改变图形”按钮,单击该按钮,则面板中显示图片的改变,继续单击按钮,则图片继续改变,如图所示。 (分数:30.00)_2.本程序是一个 Applet,功能是监听滚动条中滑块的位置。页面中有两个滚动条,一个垂直放置,另一个水平放置,还有两个文本框。垂直放置的滚动条值的范围是 0256,水平放置滚动条值的范围为1256。拖动垂直放置滚动条的滑块时,第一个文本框显示值,拖动水平放置滚动条的滑块时,第

2、二个文本框显示值,如图所示。 (分数:30.00)_3.本程序是一个 Applet,功能是监听鼠标在面板中的位置。页面中有两个文本框:“X”和“Y”,当鼠标在面板中移动时,两个文本框分别显示鼠标相对于面板左上角的横坐标和纵坐标,如图所示。 (分数:40.00)_计算机二级 JAVA-171 (1)答案解析(总分:100.00,做题时间:90 分钟)一、综合应用题(总题数:3,分数:100.00)1.本程序是一个 Applet,功能是更改显示的图片。页面中有一个“改变图形”按钮,单击该按钮,则面板中显示图片的改变,继续单击按钮,则图片继续改变,如图所示。 (分数:30.00)_正确答案:()解析

3、第 1 处:bn.setActionCommand(“改变“) 第 2 处:Graphics g=getGraphics() 第 3 处:update(g)2.本程序是一个 Applet,功能是监听滚动条中滑块的位置。页面中有两个滚动条,一个垂直放置,另一个水平放置,还有两个文本框。垂直放置的滚动条值的范围是 0256,水平放置滚动条值的范围为1256。拖动垂直放置滚动条的滑块时,第一个文本框显示值,拖动水平放置滚动条的滑块时,第二个文本框显示值,如图所示。 (分数:30.00)_正确答案:()解析:第 1 处:extends Applet implements AdjustmentList

4、ener 第 2 处:public void adjustmentValueChanged(AdjustmentEvent e) 第 3 处:x=rgh.getValue()3.本程序是一个 Applet,功能是监听鼠标在面板中的位置。页面中有两个文本框:“X”和“Y”,当鼠标在面板中移动时,两个文本框分别显示鼠标相对于面板左上角的横坐标和纵坐标,如图所示。 (分数:40.00)_正确答案:()解析:第 1 处:extends Applet implements MouseListener,MouseMotionListener 第 2 处:public void init() 第 3 处:public void mouseMoved(MouseEvent e)

展开阅读全文
相关资源
猜你喜欢
  • GOST 13767-1986 Cylindrical helical compression (tension) springs of I class and of 2 category made of round steel Main parameters of coils《2等1级圆柱形螺旋压缩和拉伸圆钢弹簧 螺旋圈基本参数》.pdf GOST 13767-1986 Cylindrical helical compression (tension) springs of I class and of 2 category made of round steel Main parameters of coils《2等1级圆柱形螺旋压缩和拉伸圆钢弹簧 螺旋圈基本参数》.pdf
  • GOST 13768-1986 Cylindrical helical compression (tension) springs of I class 3 category made of round steel Main parameters of coils《圆钢制圆柱形I级3类螺旋压力(张力)弹簧 卷材主要参数》.pdf GOST 13768-1986 Cylindrical helical compression (tension) springs of I class 3 category made of round steel Main parameters of coils《圆钢制圆柱形I级3类螺旋压力(张力)弹簧 卷材主要参数》.pdf
  • GOST 13769-1986 Cylindrical helical compression springs of I class and of 4 category made of round steel Main parameters of coils《圆钢制圆柱形I级4类螺旋压力(张力)弹簧 卷材主要参数》.pdf GOST 13769-1986 Cylindrical helical compression springs of I class and of 4 category made of round steel Main parameters of coils《圆钢制圆柱形I级4类螺旋压力(张力)弹簧 卷材主要参数》.pdf
  • GOST 13770-1986 Cylindrical helical compression (tension) springs of II class and of 1 category made of round steel Main parameters of coils《圆钢制圆柱形II级1类螺旋压力(张力)弹簧 卷材主要参数》.pdf GOST 13770-1986 Cylindrical helical compression (tension) springs of II class and of 1 category made of round steel Main parameters of coils《圆钢制圆柱形II级1类螺旋压力(张力)弹簧 卷材主要参数》.pdf
  • GOST 13771-1986 Cylindrical helical compression (tension) springs of II class and of 2 category made of round steel Main parameters of coils《圆钢制圆柱形II级2类螺旋压力(张力)弹簧 卷材主要参数》.pdf GOST 13771-1986 Cylindrical helical compression (tension) springs of II class and of 2 category made of round steel Main parameters of coils《圆钢制圆柱形II级2类螺旋压力(张力)弹簧 卷材主要参数》.pdf
  • GOST 13772-1986 Cylindrical helical compression (tension) springs of II class and 3 category made of round steel Main parameters of coils《3等2级圆柱形螺旋压缩和拉伸圆钢弹簧 螺旋圈基本参数》.pdf GOST 13772-1986 Cylindrical helical compression (tension) springs of II class and 3 category made of round steel Main parameters of coils《3等2级圆柱形螺旋压缩和拉伸圆钢弹簧 螺旋圈基本参数》.pdf
  • GOST 13773-1986 Cylindrical helical compression springs of II class and of 4 category made of round steel Main parameters of coils《圆钢制圆柱形II级4类螺旋压力(张力)弹簧 卷材主要参数》.pdf GOST 13773-1986 Cylindrical helical compression springs of II class and of 4 category made of round steel Main parameters of coils《圆钢制圆柱形II级4类螺旋压力(张力)弹簧 卷材主要参数》.pdf
  • GOST 13774-1986 Cylindrical helical compression springs of III class and of 1 category made of round steel Main parameters of coils《圆钢制圆柱形III级1类螺旋压力(张力)弹簧 卷材主要参数》.pdf GOST 13774-1986 Cylindrical helical compression springs of III class and of 1 category made of round steel Main parameters of coils《圆钢制圆柱形III级1类螺旋压力(张力)弹簧 卷材主要参数》.pdf
  • GOST 13775-1986 Cylindrical helical compression springs of III class and of 2 category made of round steel Main parameters of coils《2等3级圆柱形螺旋压缩和拉伸圆钢弹簧 螺旋圈基本参数》.pdf GOST 13775-1986 Cylindrical helical compression springs of III class and of 2 category made of round steel Main parameters of coils《2等3级圆柱形螺旋压缩和拉伸圆钢弹簧 螺旋圈基本参数》.pdf
  • 相关搜索

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

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