【计算机类职业资格】计算机二级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 29011-1991 Electromechanical switches for use in electronic equipment Part 2 Sectional specification for rotary switches《电子设备用电气机械开关 第2部分 旋转开关的成组技术条件》.pdf GOST 29011-1991 Electromechanical switches for use in electronic equipment Part 2 Sectional specification for rotary switches《电子设备用电气机械开关 第2部分 旋转开关的成组技术条件》.pdf
  • GOST 29012-1991 Powder metallurgy Method of determination of compacts dimensional changes after compacting pressure relief and at the time of sintering《金属粉末 挤压力去除后及烧结时的压块尺寸变化的测定方法》.pdf GOST 29012-1991 Powder metallurgy Method of determination of compacts dimensional changes after compacting pressure relief and at the time of sintering《金属粉末 挤压力去除后及烧结时的压块尺寸变化的测定方法》.pdf
  • GOST 29013-1991 Fabrics for blankets and corsets from chemical threads and yarn General specifications《化学长丝及纱线制成的毯子织物与紧身织物 一般技术条件》.pdf GOST 29013-1991 Fabrics for blankets and corsets from chemical threads and yarn General specifications《化学长丝及纱线制成的毯子织物与紧身织物 一般技术条件》.pdf
  • GOST 29014-1991 Pneumatic drives General test methods《气压传动 一般试验方法》.pdf GOST 29014-1991 Pneumatic drives General test methods《气压传动 一般试验方法》.pdf
  • GOST 29015-1991 Hydraulic drives General test methods《容积式液压传动 一般试验方法》.pdf GOST 29015-1991 Hydraulic drives General test methods《容积式液压传动 一般试验方法》.pdf
  • GOST 29016-1991 Vitreous and porcelain enamels Apparatus for testing with acid and neutral liquids and their vapours《玻璃塘磁与陶瓷塘磁 借助酸和中性液体及其蒸汽进行试验用的仪器》.pdf GOST 29016-1991 Vitreous and porcelain enamels Apparatus for testing with acid and neutral liquids and their vapours《玻璃塘磁与陶瓷塘磁 借助酸和中性液体及其蒸汽进行试验用的仪器》.pdf
  • GOST 29017-1991 Vitreous and porcelain enamels for sheet steel Production of specimens for testing《玻璃塘磁与陶瓷塘磁 试验用样品的制备》.pdf GOST 29017-1991 Vitreous and porcelain enamels for sheet steel Production of specimens for testing《玻璃塘磁与陶瓷塘磁 试验用样品的制备》.pdf
  • GOST 29019-1991 Vitreous and porcelain enamels Apparatus for determination of resistance to hot detergent solutions used for washing textiles《玻璃塘磁与陶瓷塘磁 织物洗涤用的洗涤剂的热溶液的稳定性测定用仪器》.pdf GOST 29019-1991 Vitreous and porcelain enamels Apparatus for determination of resistance to hot detergent solutions used for washing textiles《玻璃塘磁与陶瓷塘磁 织物洗涤用的洗涤剂的热溶液的稳定性测定用仪器》.pdf
  • GOST 29020-1991 Vitreous and porcelain enamels Determination of resistance to boiling citric acid《玻璃塘磁与陶瓷塘磁 沸腾柠檬酸的稳定性的测定》.pdf GOST 29020-1991 Vitreous and porcelain enamels Determination of resistance to boiling citric acid《玻璃塘磁与陶瓷塘磁 沸腾柠檬酸的稳定性的测定》.pdf
  • 相关搜索

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

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