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

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

1、计算机二级 JAVA-94 及答案解析(总分:100.00,做题时间:90 分钟)一、综合应用题(总题数:3,分数:100.00)1.本程序的功能是获得在文本域中文本的选择。程序窗口中有两个文本域和一个“Copy”按钮,选中第一个文本域中的部分文本,单击“Copy”按钮,则把选中的文本添加到第二个文本域中,如图所示。 (分数:33.00)_2.本程序的功能是用列表来选择窗口背景的颜色。程序窗口中有一个列表框,列表项是不同的颜色,选中其中一种颜色,窗口的背景色就变成对应的颜色,列表框不支持多项选择,如图所示。 (分数:33.00)_3.本程序的功能是用鼠标右键的弹出菜单来设置窗口的背景色。在窗口

2、中单击鼠标右键,就能在单击的位置弹出一个菜单窗口,其中的菜单项是单选按钮,选中其中某项就可以将窗口的背景色设置为选中的颜色。(分数:34.00)_计算机二级 JAVA-94 答案解析(总分:100.00,做题时间:90 分钟)一、综合应用题(总题数:3,分数:100.00)1.本程序的功能是获得在文本域中文本的选择。程序窗口中有两个文本域和一个“Copy”按钮,选中第一个文本域中的部分文本,单击“Copy”按钮,则把选中的文本添加到第二个文本域中,如图所示。 (分数:33.00)_正确答案:()解析:第 1 处:copy.addActionListener( new ActionListene

3、r() 第 2 处:t2.append( t1.getSelectedText() ) 第 3 处:app.addWindowListener( new WindowAdapter()2.本程序的功能是用列表来选择窗口背景的颜色。程序窗口中有一个列表框,列表项是不同的颜色,选中其中一种颜色,窗口的背景色就变成对应的颜色,列表框不支持多项选择,如图所示。 (分数:33.00)_正确答案:()解析:第 1 处:colorList = new JList( colorNames ) 第 2 处:colorList.setSelectionMode( ListSelectionModel.SINGLE

4、SELECTION ) 第 3 处:c.setBackground( colors colorList.getSelectedIndex() )3.本程序的功能是用鼠标右键的弹出菜单来设置窗口的背景色。在窗口中单击鼠标右键,就能在单击的位置弹出一个菜单窗口,其中的菜单项是单选按钮,选中其中某项就可以将窗口的背景色设置为选中的颜色。(分数:34.00)_正确答案:()解析:第 1 处:String colors = “Blue“, “Yellow“, “Red“ 第 2 处:items i .addActionListener( handler ) 第 3 处:popupMenu.show( e.getComponent(), e.getX(), e.getY() )

展开阅读全文
相关资源
猜你喜欢
  • KS I ISO 16000-17-2012 Indoor air-Part 17:Detection and enumeration of moulds-Culture-based method《室内空气 第17部 霉的检测与计数 培养法》.pdf KS I ISO 16000-17-2012 Indoor air-Part 17:Detection and enumeration of moulds-Culture-based method《室内空气 第17部 霉的检测与计数 培养法》.pdf
  • KS I ISO 16000-5-2009 Indoor air-Part 5:Sampling strategy for volatile organic compounds(VOCs)《室内空气 第5部分 挥发性有机化合物(VOCs)取样法》.pdf KS I ISO 16000-5-2009 Indoor air-Part 5:Sampling strategy for volatile organic compounds(VOCs)《室内空气 第5部分 挥发性有机化合物(VOCs)取样法》.pdf
  • KS I ISO 16000-7-2009 Indoor air-Part 7:Sampling strategy for determination of airborne asbestos fibre concentrations《室内空气 第7部分 空气中石棉纤维浓度测定用取样策略》.pdf KS I ISO 16000-7-2009 Indoor air-Part 7:Sampling strategy for determination of airborne asbestos fibre concentrations《室内空气 第7部分 空气中石棉纤维浓度测定用取样策略》.pdf
  • KS I ISO 16000-8-2009 Indoor air-Part 8:Determination of local mean ages of air in buildings for characterizing ventilation conditions《室内空气 第8部分 建筑物特种通风条件下局部空气存留时间的测定》.pdf KS I ISO 16000-8-2009 Indoor air-Part 8:Determination of local mean ages of air in buildings for characterizing ventilation conditions《室内空气 第8部分 建筑物特种通风条件下局部空气存留时间的测定》.pdf
  • KS I ISO 16072-2009 Soil quality-Laboratory methods for determination of microbial soil respiration《土质 微生物土壤呼吸性测定的实验室方法》.pdf KS I ISO 16072-2009 Soil quality-Laboratory methods for determination of microbial soil respiration《土质 微生物土壤呼吸性测定的实验室方法》.pdf
  • KS I ISO 16133-2005 Soil quality-Guidance on the establishment and maintenance of monitoring programmes 《土壤质量 监测程序的建立和维护指南》.pdf KS I ISO 16133-2005 Soil quality-Guidance on the establishment and maintenance of monitoring programmes 《土壤质量 监测程序的建立和维护指南》.pdf
  • KS I ISO 16144-2009 Hydraulic fluid power-Calibration of liquid automatic particle counters-Procedures used to certify the standard reference material SRM 2806《液压传动 液体自动粒子计数器的校准 证实.pdf KS I ISO 16144-2009 Hydraulic fluid power-Calibration of liquid automatic particle counters-Procedures used to certify the standard reference material SRM 2806《液压传动 液体自动粒子计数器的校准 证实.pdf
  • KS I ISO 16221-2006 Water quality-Guidance for determination of biodegradability in the marine environment《水质 海洋环境生物降解性测定指南》.pdf KS I ISO 16221-2006 Water quality-Guidance for determination of biodegradability in the marine environment《水质 海洋环境生物降解性测定指南》.pdf
  • KS I ISO 16240-2006 Water quality-Determination of the genotoxicity of water andwaste water-Salmonella microsome test(Ames test)《水质 水和污水的遗传毒性测定 沙门氏菌 微粒体试验(Ames试验)》.pdf KS I ISO 16240-2006 Water quality-Determination of the genotoxicity of water andwaste water-Salmonella microsome test(Ames test)《水质 水和污水的遗传毒性测定 沙门氏菌 微粒体试验(Ames试验)》.pdf
  • 相关搜索

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

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