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

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

1、计算机二级 JAVA-117 (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-117 (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)

展开阅读全文
相关资源
猜你喜欢
  • BS EN 1040-2005 Chemical disinfectants and antispetics - Quantitative suspension test for the evaluation of basic bactericidal activity of chemical disinfectants and antiseptics - .pdf BS EN 1040-2005 Chemical disinfectants and antispetics - Quantitative suspension test for the evaluation of basic bactericidal activity of chemical disinfectants and antiseptics - .pdf
  • BS EN 1045-1997 Brazing - Fluxes for brazing - Classification and technical delivery conditions《钎焊 钎焊用熔剂 分类和交付技术状态》.pdf BS EN 1045-1997 Brazing - Fluxes for brazing - Classification and technical delivery conditions《钎焊 钎焊用熔剂 分类和交付技术状态》.pdf
  • BS EN 1047-1-2005 Secure storage units - Classification and methods of test for resistance to fire - Part 1 Data cabinets and diskette inserts《安全存储装置 耐火性能的分类和试验方法 资料柜和磁盘衬套》.pdf BS EN 1047-1-2005 Secure storage units - Classification and methods of test for resistance to fire - Part 1 Data cabinets and diskette inserts《安全存储装置 耐火性能的分类和试验方法 资料柜和磁盘衬套》.pdf
  • BS EN 1048-2014 Heat exchangers Air cooled liquid coolers (dry coolers) Test procedures for establishing the performance《热交换器 空气冷化液体冷却器“干冷却器” 性能稳定性的试验方法》.pdf BS EN 1048-2014 Heat exchangers Air cooled liquid coolers (dry coolers) Test procedures for establishing the performance《热交换器 空气冷化液体冷却器“干冷却器” 性能稳定性的试验方法》.pdf
  • BS EN 1049-2-1994 Textiles - Woven fabrics - Construction - Methods of analysis - Determination of number of threads per unit length《纺织品 编织物 构造 分析方法 每单位长线数的测定》.pdf BS EN 1049-2-1994 Textiles - Woven fabrics - Construction - Methods of analysis - Determination of number of threads per unit length《纺织品 编织物 构造 分析方法 每单位长线数的测定》.pdf
  • BS EN 1051-1-2003 Glass in building - Glass blocks and glass pavers - Definitions and description《建筑玻璃 玻璃块和玻璃铺面 定义和说明》.pdf BS EN 1051-1-2003 Glass in building - Glass blocks and glass pavers - Definitions and description《建筑玻璃 玻璃块和玻璃铺面 定义和说明》.pdf
  • BS EN 1051-2-2007 Glass in building — nGlass blocks and glass npavers — nPart 2 Evaluation of nconformity Product standard《建筑玻璃 玻璃块和玻璃铺面 合格 产品标准的评定》.pdf BS EN 1051-2-2007 Glass in building — nGlass blocks and glass npavers — nPart 2 Evaluation of nconformity Product standard《建筑玻璃 玻璃块和玻璃铺面 合格 产品标准的评定》.pdf
  • BS EN 1052-1-1999 Methods of test for masonry - Determination of compressive strength《砖石工程的试验方法 压缩强度的测定》.pdf BS EN 1052-1-1999 Methods of test for masonry - Determination of compressive strength《砖石工程的试验方法 压缩强度的测定》.pdf
  • BS EN 1052-2-2016 Methods of test for masonry Determination of flexural strength《砖石建筑体的试验方法 挠曲强度的测定》.pdf BS EN 1052-2-2016 Methods of test for masonry Determination of flexural strength《砖石建筑体的试验方法 挠曲强度的测定》.pdf
  • 相关搜索

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

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