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

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

1、计算机二级 JAVA-85 (1)及答案解析(总分:100.00,做题时间:90 分钟)一、简单应用题(总题数:3,分数:100.00)1.本程序的功能是通过滑动条修改颜色的 RGB 值,从而控制颜色。程序中有一个面板、3 个标签和 3 个滑动条,标签和滑动条一一对应,分别对应三原色红、绿、蓝,任意拖动其中一个滑动条,所对应的颜色值就会发生变化,面板的颜色也会对应发生变化,滑动条值的范围是 0255,如图所示。 (分数:30.00)_2.本程序使用下拉菜单来控制字体,窗口中有一个标签和一个下拉菜单,当选中下拉菜单中的任一项字体时,标签上字符串的字体就随之改变,如图所示。 (分数:30.00)_

2、3.本程序中,通过菜单 Connect 显示一个对话框,对话框中有“User name”和“Password”两个文本框,在这两个文本框中输入内容后单击“Ok”按钮,在主窗口的下面就会显示所填写的内容。例如在“User name”文本框中填写“Joun”,在“Password”文本框中填写“19820201”,单击“Ok”按钮后,在主窗口的下面就会显示出“username=Joun,password=19820201”,如图所示。 (分数:40.00)_计算机二级 JAVA-85 (1)答案解析(总分:100.00,做题时间:90 分钟)一、简单应用题(总题数:3,分数:100.00)1.本程

3、序的功能是通过滑动条修改颜色的 RGB 值,从而控制颜色。程序中有一个面板、3 个标签和 3 个滑动条,标签和滑动条一一对应,分别对应三原色红、绿、蓝,任意拖动其中一个滑动条,所对应的颜色值就会发生变化,面板的颜色也会对应发生变化,滑动条值的范围是 0255,如图所示。 (分数:30.00)_正确答案:()解析:第 1 处:getContentPane() 第 2 处:colorPanel.repaint()2.本程序使用下拉菜单来控制字体,窗口中有一个标签和一个下拉菜单,当选中下拉菜单中的任一项字体时,标签上字符串的字体就随之改变,如图所示。 (分数:30.00)_正确答案:()解析:第 1

4、 处:implements ActionListener 第 2 处:evt.getSource()3.本程序中,通过菜单 Connect 显示一个对话框,对话框中有“User name”和“Password”两个文本框,在这两个文本框中输入内容后单击“Ok”按钮,在主窗口的下面就会显示所填写的内容。例如在“User name”文本框中填写“Joun”,在“Password”文本框中填写“19820201”,单击“Ok”按钮后,在主窗口的下面就会显示出“username=Joun,password=19820201”,如图所示。 (分数:40.00)_正确答案:()解析:第 1 处:JMenuBar mbar = new JMenuBar() 第 2 处:return button

展开阅读全文
相关资源
猜你喜欢
  • ANSI AIIM MS45-1990 Recommended Practice for Inspection of Stored Silver-Gelatin Microforms for Evidence of Deterioration《信息和图像管理.损坏证据的存储的银胶缩微版本检验的推荐实施规程》.pdf ANSI AIIM MS45-1990 Recommended Practice for Inspection of Stored Silver-Gelatin Microforms for Evidence of Deterioration《信息和图像管理.损坏证据的存储的银胶缩微版本检验的推荐实施规程》.pdf
  • ANSI AIIM MS46-1990 Test Procedure for Duplicating 35 mm Diazo Microfilm Aperture Cards.pdf ANSI AIIM MS46-1990 Test Procedure for Duplicating 35 mm Diazo Microfilm Aperture Cards.pdf
  • ANSI AIIM MS48-1999 Recommended Practice for Microfilming Public Records on Silver-Halide Film《卤化银胶片上缩微公共档案的推荐实施规程》.pdf ANSI AIIM MS48-1999 Recommended Practice for Microfilming Public Records on Silver-Halide Film《卤化银胶片上缩微公共档案的推荐实施规程》.pdf
  • ANSI AIIM MS5-1992 Microfiche《缩微制图缩微胶片》.pdf ANSI AIIM MS5-1992 Microfiche《缩微制图缩微胶片》.pdf
  • ANSI AIIM MS50-1994 Recommended Practice - Monitoring Image Quality of Aperture Card Film Image Scanners《信息和图像管理标准.标准推荐实施规程.缩微片检索穿孔卡的胶片图像扫描器的监测图像质量》.pdf ANSI AIIM MS50-1994 Recommended Practice - Monitoring Image Quality of Aperture Card Film Image Scanners《信息和图像管理标准.标准推荐实施规程.缩微片检索穿孔卡的胶片图像扫描器的监测图像质量》.pdf
  • ANSI AIIM MS52-1991 Recommended Practice for the Requirements and Characteristics of Documents Intended for Optical Scanning《用于光学扫描的源文件的要求和特性的推荐实施规程》.pdf ANSI AIIM MS52-1991 Recommended Practice for the Requirements and Characteristics of Documents Intended for Optical Scanning《用于光学扫描的源文件的要求和特性的推荐实施规程》.pdf
  • ANSI AIIM MS53-1993 Standard Recommended Practice - File Format for Storage and Exchange of Images - Bi-Level Image File Format Part 1《图像存储和交换用文件格式.双层图像文件格式 第1部分》.pdf ANSI AIIM MS53-1993 Standard Recommended Practice - File Format for Storage and Exchange of Images - Bi-Level Image File Format Part 1《图像存储和交换用文件格式.双层图像文件格式 第1部分》.pdf
  • ANSI AIIM MS54-1993 Graphic Symbols for Controls on Document Imaging Equipment《文档成像设备上控制装置的图形符号》.pdf ANSI AIIM MS54-1993 Graphic Symbols for Controls on Document Imaging Equipment《文档成像设备上控制装置的图形符号》.pdf
  • ANSI AIIM MS55-1994 Standard Recommended Practice for the Identification and Indexing of Page Components (Zones) for Automated Processing in an Electronic Image Management (EIM) En.pdf ANSI AIIM MS55-1994 Standard Recommended Practice for the Identification and Indexing of Page Components (Zones) for Automated Processing in an Electronic Image Management (EIM) En.pdf
  • 相关搜索

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

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