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

展开阅读全文
相关资源
猜你喜欢
  • DIN EN ISO 2114 Corrigendum 1-2006 Plastics(polyester resins) and paints and varnishes (binders) - Determination of parial acid value and total acid value (ISO 2114 2000) Corrigend0.pdf DIN EN ISO 2114 Corrigendum 1-2006 Plastics(polyester resins) and paints and varnishes (binders) - Determination of parial acid value and total acid value (ISO 2114 2000) Corrigend0.pdf
  • DIN EN ISO 2114-2002 Plastics (polyester resins) and paints varnishes (binders) - Determination of partial acid value and total acid value (ISO 2114 2000) German version EN ISO 211.pdf DIN EN ISO 2114-2002 Plastics (polyester resins) and paints varnishes (binders) - Determination of partial acid value and total acid value (ISO 2114 2000) German version EN ISO 211.pdf
  • DIN EN ISO 2128-2010 Anodizing of aluminium and its alloys - Determination of thickness of anodic oxidation coatings - Non-destructive measurement by split-beam microscope (ISO 212.pdf DIN EN ISO 2128-2010 Anodizing of aluminium and its alloys - Determination of thickness of anodic oxidation coatings - Non-destructive measurement by split-beam microscope (ISO 212.pdf
  • DIN EN ISO 2151-2009 Acoustics - Noise test code for compressors and vacuum pumps - Engineering method (grade 2) (ISO 2151 2004) English version of DIN EN ISO 2151 2009-01《声学 压缩机和真.pdf DIN EN ISO 2151-2009 Acoustics - Noise test code for compressors and vacuum pumps - Engineering method (grade 2) (ISO 2151 2004) English version of DIN EN ISO 2151 2009-01《声学 压缩机和真.pdf
  • DIN EN ISO 2157-2016 Dentistry - Nominal diameters and designation code numbers for rotary instruments (ISO 2157 2016) German version EN ISO 2157 2016《牙科 旋转器械的公称直径和命名代码(ISO 2157-20.pdf DIN EN ISO 2157-2016 Dentistry - Nominal diameters and designation code numbers for rotary instruments (ISO 2157 2016) German version EN ISO 2157 2016《牙科 旋转器械的公称直径和命名代码(ISO 2157-20.pdf
  • DIN EN ISO 216-2007 Writing paper and certain classes of printed matter - Trimmed sizes - A and B series and indication of machine direction (ISO 216 2007) English version of DIN E.pdf DIN EN ISO 216-2007 Writing paper and certain classes of printed matter - Trimmed sizes - A and B series and indication of machine direction (ISO 216 2007) English version of DIN E.pdf
  • DIN EN ISO 2160-1999 Petroleum products - Corrosiveness to copper - Copper strip test (ISO 2160 1998) German version EN ISO 2160 1998《石油产品 对铜的腐蚀作用 铜片试验》.pdf DIN EN ISO 2160-1999 Petroleum products - Corrosiveness to copper - Copper strip test (ISO 2160 1998) German version EN ISO 2160 1998《石油产品 对铜的腐蚀作用 铜片试验》.pdf
  • DIN EN ISO 217-2013 Paper - Untrimmed sizes - Designation and tolerances for primary and supplementary ranges and indication of machine direction (ISO 217 2013) German version EN I.pdf DIN EN ISO 217-2013 Paper - Untrimmed sizes - Designation and tolerances for primary and supplementary ranges and indication of machine direction (ISO 217 2013) German version EN I.pdf
  • DIN EN ISO 2171-2010 Cereals pulses and by-products - Determination of ash yield by incineration (ISO 2171 2007) German version EN ISO 2171 2010《谷类食品 豆类及其副产品 焚化后灰分的测定(ISO 2171-2007.pdf DIN EN ISO 2171-2010 Cereals pulses and by-products - Determination of ash yield by incineration (ISO 2171 2007) German version EN ISO 2171 2010《谷类食品 豆类及其副产品 焚化后灰分的测定(ISO 2171-2007.pdf
  • 相关搜索

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

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