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

展开阅读全文
相关资源
猜你喜欢
  • SAE AS 81822 1A-2011 Wire Electrical Solderless Wrap Polyethylene Terephthalate-Polyester Laminated Tape Insultation Silver Coated Solid Conductor《无焊绕接 聚对苯二甲酸乙二酯聚酯叠层带绝缘 镀银实心导体电线》.pdf SAE AS 81822 1A-2011 Wire Electrical Solderless Wrap Polyethylene Terephthalate-Polyester Laminated Tape Insultation Silver Coated Solid Conductor《无焊绕接 聚对苯二甲酸乙二酯聚酯叠层带绝缘 镀银实心导体电线》.pdf
  • SAE AS 81822 3A-2011 Wire Electrical Solderless Wrap Extruded Polyvinyidene Fluoride (PVDF) Insulation Silver Coated Solid Conductor《镀银实心导体聚偏二氟乙烯绝缘(PVDF)挤压绝缘焊锡电线》.pdf SAE AS 81822 3A-2011 Wire Electrical Solderless Wrap Extruded Polyvinyidene Fluoride (PVDF) Insulation Silver Coated Solid Conductor《镀银实心导体聚偏二氟乙烯绝缘(PVDF)挤压绝缘焊锡电线》.pdf
  • SAE AS 81822 4A-2011 Wire Electrical Solderless Wrap Polyimide Coating Over Extruded Polytetrafluoroethylene (PTFE) Insulation Silver Coated Solid Conductor《带聚酰亚胺涂层的挤压聚四氟乙烯(PTFE)无焊.pdf SAE AS 81822 4A-2011 Wire Electrical Solderless Wrap Polyimide Coating Over Extruded Polytetrafluoroethylene (PTFE) Insulation Silver Coated Solid Conductor《带聚酰亚胺涂层的挤压聚四氟乙烯(PTFE)无焊.pdf
  • SAE AS 81822 5A-2011 Wire Electrical Solderless Wrap Fluorocarbon Polyimide Tape and Polytetrafluoroethylene (PTFE) Insulation Silver Coated Solid Conductor《碳氟化合物聚酰亚胺带和聚四氟乙烯(PTFE)绝.pdf SAE AS 81822 5A-2011 Wire Electrical Solderless Wrap Fluorocarbon Polyimide Tape and Polytetrafluoroethylene (PTFE) Insulation Silver Coated Solid Conductor《碳氟化合物聚酰亚胺带和聚四氟乙烯(PTFE)绝.pdf
  • SAE AS 81822 6A-2011 Wire Electrical Solderless Wrap Extruded Polytetrafluoroethylene (PTFE) Insulation Silver Coated Solid Conductor《挤压四氟乙烯(ETFE)无焊包装绝缘层和银涂层导线组成的电线》.pdf SAE AS 81822 6A-2011 Wire Electrical Solderless Wrap Extruded Polytetrafluoroethylene (PTFE) Insulation Silver Coated Solid Conductor《挤压四氟乙烯(ETFE)无焊包装绝缘层和银涂层导线组成的电线》.pdf
  • SAE AS 81822 7A-2011 Wire Electrical Solderless Wrap Polyimide Jacket Over Extruded Polyvinyl Chloride (PVE) Insulation Tin Coated Solid Conductor《锡涂层固体导体带聚酰亚胺绝缘护套的挤压聚氯乙烯(PVE)绝缘无焊包.pdf SAE AS 81822 7A-2011 Wire Electrical Solderless Wrap Polyimide Jacket Over Extruded Polyvinyl Chloride (PVE) Insulation Tin Coated Solid Conductor《锡涂层固体导体带聚酰亚胺绝缘护套的挤压聚氯乙烯(PVE)绝缘无焊包.pdf
  • SAE AS 81822 8A-2011 Wire Electrical Solderless Wrap Polyimide Jacket Over Extruded Fluorinated Ethylene Propylene (FEP) Insulation Silver Coated Solid Conductor《镀银实心导体聚酰亚胺护套氟化乙烯丙烯.pdf SAE AS 81822 8A-2011 Wire Electrical Solderless Wrap Polyimide Jacket Over Extruded Fluorinated Ethylene Propylene (FEP) Insulation Silver Coated Solid Conductor《镀银实心导体聚酰亚胺护套氟化乙烯丙烯.pdf
  • SAE AS 81822A-2011 Wire Electrical Solderless Wrap Insulated and Uninsulated General Specification for《绝缘和非绝缘无焊包装电线的一般规格说明》.pdf SAE AS 81822A-2011 Wire Electrical Solderless Wrap Insulated and Uninsulated General Specification for《绝缘和非绝缘无焊包装电线的一般规格说明》.pdf
  • SAE AS 81824 10-2012 SPLICE IN-LINE ELECTRIC CRIMP NI CU ENVIRONMENTAL HEAT-SHRINKABLE SLEEVE (175  3 X 3 SEALANT OPENING《3 X 3密封剂开口热缩管(175℃)NI CU环境电气卷曲同轴连接》.pdf SAE AS 81824 10-2012 SPLICE IN-LINE ELECTRIC CRIMP NI CU ENVIRONMENTAL HEAT-SHRINKABLE SLEEVE (175 3 X 3 SEALANT OPENING《3 X 3密封剂开口热缩管(175℃)NI CU环境电气卷曲同轴连接》.pdf
  • 相关搜索

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

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