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

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

1、计算机二级 JAVA-107 (1)及答案解析(总分:100.00,做题时间:90 分钟)一、简单应用题(总题数:3,分数:100.00)1.本程序是一个 Applet,页面中有一个面板和两个按钮:“全部清除”和“部分清除”,面板上有上下两个字符串,单击“部分清除”按钮时,画板上方的字符串消失,单击“全部清除”按钮时,则画板上的所有字符串都消失,如图所示。 (分数:30.00)_2.本程序中,主窗口有一个按钮、一个文本域和一个复选框,初始时窗口的大小是不能调整的,选中复选框后,窗口大小就可以进行调整,如果撤销复选框的选择,则窗口的大小不能调整,单击按钮可以关闭程序,如图所示。 (分数:30.0

2、0)_3.本程序中,主窗口有一个按钮、一个文本域和一个复选框,初始时窗口的大小为 100200,选中复选框后,窗口的大小和屏幕的大小相同,取消选中后,屏幕又恢复原来的大小,单击按钮可以退出程序,如图所示。 (分数:40.00)_计算机二级 JAVA-107 (1)答案解析(总分:100.00,做题时间:90 分钟)一、简单应用题(总题数:3,分数:100.00)1.本程序是一个 Applet,页面中有一个面板和两个按钮:“全部清除”和“部分清除”,面板上有上下两个字符串,单击“部分清除”按钮时,画板上方的字符串消失,单击“全部清除”按钮时,则画板上的所有字符串都消失,如图所示。 (分数:30.

3、00)_正确答案:()解析:第 1 处:g.clearRect(0,0,width,height) 第 2 处:canvas.setN(0);canvas.repaint()2.本程序中,主窗口有一个按钮、一个文本域和一个复选框,初始时窗口的大小是不能调整的,选中复选框后,窗口大小就可以进行调整,如果撤销复选框的选择,则窗口的大小不能调整,单击按钮可以关闭程序,如图所示。 (分数:30.00)_正确答案:()解析:第 1 处:implements ItemListener,ActionListener 第 2 处:setResizable(false)3.本程序中,主窗口有一个按钮、一个文本域和一个复选框,初始时窗口的大小为 100200,选中复选框后,窗口的大小和屏幕的大小相同,取消选中后,屏幕又恢复原来的大小,单击按钮可以退出程序,如图所示。 (分数:40.00)_正确答案:()解析:第 1 处:box.getState()=true 第 2 处:tool.getScreenSize()

展开阅读全文
相关资源
猜你喜欢
  • GOST R 50295-1992 Fixed capacitors for use in electronic equipment Part 9 Blank detail specification fixed capacitors of ceramic dielectric class 2 Assessment level E《电子设备中使用的固定电容器.pdf GOST R 50295-1992 Fixed capacitors for use in electronic equipment Part 9 Blank detail specification fixed capacitors of ceramic dielectric class 2 Assessment level E《电子设备中使用的固定电容器.pdf
  • GOST R 50296-1992 Fixed capacitors for use in electronic equipment Part 10 Sectional specification fixed multilayer ceramic chip capacitors《电子设备中使用的固定电容器 第10部分 分规范 固定多层陶瓷片状电容器》.pdf GOST R 50296-1992 Fixed capacitors for use in electronic equipment Part 10 Sectional specification fixed multilayer ceramic chip capacitors《电子设备中使用的固定电容器 第10部分 分规范 固定多层陶瓷片状电容器》.pdf
  • GOST R 50297-1992 Fixed capacitors for use in electronic equipment Part 10 Sectional specification fixed multilayer ceramic chip capacitors Assessment level E《电子设备中使用的固定电容器 第10部分 分.pdf GOST R 50297-1992 Fixed capacitors for use in electronic equipment Part 10 Sectional specification fixed multilayer ceramic chip capacitors Assessment level E《电子设备中使用的固定电容器 第10部分 分.pdf
  • GOST R 50300-1992 Turning tools with indexable inserts of superhard materials Specifications《带有用超硬材料制成的可转位刀片的车刀 规范》.pdf GOST R 50300-1992 Turning tools with indexable inserts of superhard materials Specifications《带有用超硬材料制成的可转位刀片的车刀 规范》.pdf
  • GOST R 50302-1992 Regrindale superhard material (composite) tipped cartridges for toolholders Specifications《刀夹的可再磨超硬材料制(合成材料)镶刃夹头 规范》.pdf GOST R 50302-1992 Regrindale superhard material (composite) tipped cartridges for toolholders Specifications《刀夹的可再磨超硬材料制(合成材料)镶刃夹头 规范》.pdf
  • GOST R 50304-1992 Interface systems for radioelectronic means interaction Terms and definitions《无线电工具相互作用接口系统 术语和定义》.pdf GOST R 50304-1992 Interface systems for radioelectronic means interaction Terms and definitions《无线电工具相互作用接口系统 术语和定义》.pdf
  • GOST R 50308-1992 Seed of portulacas dracocephalus and tragopogons Sowing characteristics Specifications《马齿苋属 青兰属和婆罗门参属植物籽 播种特性 规范》.pdf GOST R 50308-1992 Seed of portulacas dracocephalus and tragopogons Sowing characteristics Specifications《马齿苋属 青兰属和婆罗门参属植物籽 播种特性 规范》.pdf
  • GOST R 50319-1992 Electromechanical switches for use in electronic equipment Sectional specification for in-line package switches《电子设备在使用的机电式开关 成列直插封装开关分规范》.pdf GOST R 50319-1992 Electromechanical switches for use in electronic equipment Sectional specification for in-line package switches《电子设备在使用的机电式开关 成列直插封装开关分规范》.pdf
  • GOST R 50320-1992 Electromechanical switches for use in electronic equipment Sectional specification for pushbutton switches《电子设备在使用的机电式开关 按钮开关分规范》.pdf GOST R 50320-1992 Electromechanical switches for use in electronic equipment Sectional specification for pushbutton switches《电子设备在使用的机电式开关 按钮开关分规范》.pdf
  • 相关搜索

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

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