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

展开阅读全文
相关资源
猜你喜欢
  • ASTM F2554-2010 Standard Practice for Measurement of Positional Accuracy of Computer Assisted Surgical Systems《计算机辅助外科系统定位精度的测量规程》.pdf ASTM F2554-2010 Standard Practice for Measurement of Positional Accuracy of Computer Assisted Surgical Systems《计算机辅助外科系统定位精度的测量规程》.pdf
  • ASTM F2555-2006 Standard Practice for Determining Page Yield of Ink Jet Printer Cartridges-Continuous Printing Method《喷墨盒的页面产量测定的标准规程 连续打印法》.pdf ASTM F2555-2006 Standard Practice for Determining Page Yield of Ink Jet Printer Cartridges-Continuous Printing Method《喷墨盒的页面产量测定的标准规程 连续打印法》.pdf
  • ASTM F2555-2006(2011) Standard Practice for Determining Page Yield of Ink Jet Printer CartridgesContinuous Printing Method《喷墨打印机硒鼓页面利用率的测定标准规程-连续打印法》.pdf ASTM F2555-2006(2011) Standard Practice for Determining Page Yield of Ink Jet Printer CartridgesContinuous Printing Method《喷墨打印机硒鼓页面利用率的测定标准规程-连续打印法》.pdf
  • ASTM F2559 F2559M-2006(2010)e1 Standard Guide for Writing a Specification for Sterilizable Peel Pouches《消毒包装袋说明书编写的标准指南》.pdf ASTM F2559 F2559M-2006(2010)e1 Standard Guide for Writing a Specification for Sterilizable Peel Pouches《消毒包装袋说明书编写的标准指南》.pdf
  • ASTM F2559 F2559M-2006(2015) Standard Guide for Writing a Specification for Sterilizable Peel Pouches《用于制定消毒皮袋规格的标准指南》.pdf ASTM F2559 F2559M-2006(2015) Standard Guide for Writing a Specification for Sterilizable Peel Pouches《用于制定消毒皮袋规格的标准指南》.pdf
  • ASTM F2559-2006 Standard Guide for Writing a Specification for Sterilizable Peel Pouches《书写可灭菌可剥离袋规范的标准指南》.pdf ASTM F2559-2006 Standard Guide for Writing a Specification for Sterilizable Peel Pouches《书写可灭菌可剥离袋规范的标准指南》.pdf
  • ASTM F2561-2006 Standard Practice for Rehabilitation of a Sewer Service Lateral and Its Connection to the Main Using a One Piece Main and Lateral Cured-in-Place Liner《下水道服务内衬及其连接到用.pdf ASTM F2561-2006 Standard Practice for Rehabilitation of a Sewer Service Lateral and Its Connection to the Main Using a One Piece Main and Lateral Cured-in-Place Liner《下水道服务内衬及其连接到用.pdf
  • ASTM F2561-2011 Standard Practice for Rehabilitation of a Sewer Service Lateral and Its Connection to the Main Using a One Piece Main and Lateral Cured-in-Place Liner《恢复下水道服务及其使用一件.pdf ASTM F2561-2011 Standard Practice for Rehabilitation of a Sewer Service Lateral and Its Connection to the Main Using a One Piece Main and Lateral Cured-in-Place Liner《恢复下水道服务及其使用一件.pdf
  • ASTM F2561-2016 Standard Practice for Rehabilitation of a Sewer Service Lateral and Its Connection to the Main Using a One Piece Main and Lateral Cured-in-Place Liner《采用一件式主体和横向现场固.pdf ASTM F2561-2016 Standard Practice for Rehabilitation of a Sewer Service Lateral and Its Connection to the Main Using a One Piece Main and Lateral Cured-in-Place Liner《采用一件式主体和横向现场固.pdf
  • 相关搜索

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

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