【计算机类职业资格】计算机二级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)

展开阅读全文
相关资源
猜你喜欢
  • EN 14594-2018 en Respiratory protective devices - Continuous flow compressed air line breathing devices - Requirements testing and marking.pdf EN 14594-2018 en Respiratory protective devices - Continuous flow compressed air line breathing devices - Requirements testing and marking.pdf
  • EN 14595-2005 0000 Tanks for transport of dangerous goods - Service equipment for tanks - Pressure and Vacuum Breather Vent《危险物品运输罐 罐的辅助设备 压力和真空通气口》.pdf EN 14595-2005 0000 Tanks for transport of dangerous goods - Service equipment for tanks - Pressure and Vacuum Breather Vent《危险物品运输罐 罐的辅助设备 压力和真空通气口》.pdf
  • EN 14595-2016 en Tanks for transport of dangerous goods - Service equipment - Breather device《危险品运输罐-罐的操作装置-压力和真空呼吸阀》.pdf EN 14595-2016 en Tanks for transport of dangerous goods - Service equipment - Breather device《危险品运输罐-罐的操作装置-压力和真空呼吸阀》.pdf
  • EN 14596-2005 en Tanks for transport of dangerous goods - Service equipment for tanks - Emergency pressure relief valve《危险物品运输罐 罐的辅助设备 应急减压阀》.pdf EN 14596-2005 en Tanks for transport of dangerous goods - Service equipment for tanks - Emergency pressure relief valve《危险物品运输罐 罐的辅助设备 应急减压阀》.pdf
  • EN 14597-2012 en Temperature control devices and temperature limiters for heat generating systems《热发生系统用温度控制装置和限温器》.pdf EN 14597-2012 en Temperature control devices and temperature limiters for heat generating systems《热发生系统用温度控制装置和限温器》.pdf
  • EN 14598-1-2005 en Reinforced thermosetting moulding compounds - Specification for Sheet Moulding Compound (SMC) and Bulk Moulding Compound (BMC) - Part 1 Designation《增强热固性模塑复合物 模压.pdf EN 14598-1-2005 en Reinforced thermosetting moulding compounds - Specification for Sheet Moulding Compound (SMC) and Bulk Moulding Compound (BMC) - Part 1 Designation《增强热固性模塑复合物 模压.pdf
  • EN 14598-2-2005 en Reinforced thermosetting moulding compounds - Specification for Sheet Moulding Compound (SMC) and Bulk Moulding Compound (BMC) - Part 2 Methods of test and gener.pdf EN 14598-2-2005 en Reinforced thermosetting moulding compounds - Specification for Sheet Moulding Compound (SMC) and Bulk Moulding Compound (BMC) - Part 2 Methods of test and gener.pdf
  • EN 14598-3-2005 en Reinforced thermosetting moulding compounds - Specification for Sheet Moulding Compound (SMC) and Bulk Moulding Compound (BMC) - Part 3 Specific requirements《增强热.pdf EN 14598-3-2005 en Reinforced thermosetting moulding compounds - Specification for Sheet Moulding Compound (SMC) and Bulk Moulding Compound (BMC) - Part 3 Specific requirements《增强热.pdf
  • EN 14600-2005 en Doorsets and openable windows with fire resisting and or smoke control characteristics - Requirements and classification《带耐火和 或烟控特性的整樘门和可开窗 要求和分类》.pdf EN 14600-2005 en Doorsets and openable windows with fire resisting and or smoke control characteristics - Requirements and classification《带耐火和 或烟控特性的整樘门和可开窗 要求和分类》.pdf
  • 相关搜索

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

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