【计算机类职业资格】计算机二级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 4049-001-2008 Aerospace series - Thermocouple extension cable - Operating temperatures between -65 C to 260 C - Part 001 Technical specification German and English version E.pdf DIN EN 4049-001-2008 Aerospace series - Thermocouple extension cable - Operating temperatures between -65 C to 260 C - Part 001 Technical specification German and English version E.pdf
  • DIN EN 4049-002-2007 Aerospace series - Thermocouple extension cable - Operating temperatures between -65 C to 260 C - Part 002 General German and English version EN 4049-002 2005《.pdf DIN EN 4049-002-2007 Aerospace series - Thermocouple extension cable - Operating temperatures between -65 C to 260 C - Part 002 General German and English version EN 4049-002 2005《.pdf
  • DIN EN 4049-003-2008 Aerospace series - Thermocouple extension cable - Operating temperatures between -65 C to 260 C - Part 003 Single core nickel chromium nickel aluminium - Produ.pdf DIN EN 4049-003-2008 Aerospace series - Thermocouple extension cable - Operating temperatures between -65 C to 260 C - Part 003 Single core nickel chromium nickel aluminium - Produ.pdf
  • DIN EN 4049-004-2008 Aerospace series - Thermocouple extension cable - Operating temperatures between -65 C to 260 C - Part 004 Two core nickel chromium nickel aluminium shielded a.pdf DIN EN 4049-004-2008 Aerospace series - Thermocouple extension cable - Operating temperatures between -65 C to 260 C - Part 004 Two core nickel chromium nickel aluminium shielded a.pdf
  • DIN EN 405-2009 Respiratory protective devices - Valved filtering half masks to protect against gases or gases and particles - Requirements testing marking (includes Amendment A1 2.pdf DIN EN 405-2009 Respiratory protective devices - Valved filtering half masks to protect against gases or gases and particles - Requirements testing marking (includes Amendment A1 2.pdf
  • DIN EN 4050-1-2012 Aerospace series - Test method for metallic materials - Ultrasonic inspection of bars plates forging stock and forgings - Part 1 General requirements German and .pdf DIN EN 4050-1-2012 Aerospace series - Test method for metallic materials - Ultrasonic inspection of bars plates forging stock and forgings - Part 1 General requirements German and .pdf
  • DIN EN 4050-2-2012 Aerospace series - Test method for metallic materials - Ultrasonic inspection of bars plates forging stock and forgings - Part 2 Performance of test German and E.pdf DIN EN 4050-2-2012 Aerospace series - Test method for metallic materials - Ultrasonic inspection of bars plates forging stock and forgings - Part 2 Performance of test German and E.pdf
  • DIN EN 4050-3-2012 Aerospace series - Test method for metallic materials - Ultrasonic inspection of bars plates forging stock and forgings - Part 3 Reference blocks German and Engl.pdf DIN EN 4050-3-2012 Aerospace series - Test method for metallic materials - Ultrasonic inspection of bars plates forging stock and forgings - Part 3 Reference blocks German and Engl.pdf
  • DIN EN 4050-4-2012 Aerospace series - Test method for metallic materials - Ultrasonic inspection of bars plates forging stock and forgings - Part 4 Acceptance criteria German and E.pdf DIN EN 4050-4-2012 Aerospace series - Test method for metallic materials - Ultrasonic inspection of bars plates forging stock and forgings - Part 4 Acceptance criteria German and E.pdf
  • 相关搜索

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

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