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

展开阅读全文
相关资源
猜你喜欢
  • NF L24-106-2006 Aerospace series - bolts normal hexagon head coarse tolerance normal shank short thread in corrosion resisting steel passivated - Classification  600 MPa (at ambien.pdf NF L24-106-2006 Aerospace series - bolts normal hexagon head coarse tolerance normal shank short thread in corrosion resisting steel passivated - Classification 600 MPa (at ambien.pdf
  • NF L24-107-2006 Aerospace series - Metric bolts normal hexagonal head coarse tolerance normal shank short thread in alloy steel cadmium plated - Classification  900 MPa (at ambient.pdf NF L24-107-2006 Aerospace series - Metric bolts normal hexagonal head coarse tolerance normal shank short thread in alloy steel cadmium plated - Classification 900 MPa (at ambient.pdf
  • NF L24-110-2006 3125 Aerospace series - Metric bolts normal hexagonal head coarse tolerance normal shank short thread in titanium alloy anodized MoS2 lubricated - Classification  1.pdf NF L24-110-2006 3125 Aerospace series - Metric bolts normal hexagonal head coarse tolerance normal shank short thread in titanium alloy anodized MoS2 lubricated - Classification 1.pdf
  • NF L24-111-2009 Aerospace serie - Fasteners externally threaded in heat resisting steel FE-PA92HT (A286) - Classification  900 MPa 650 oC Manufacturing method optional - Technical .pdf NF L24-111-2009 Aerospace serie - Fasteners externally threaded in heat resisting steel FE-PA92HT (A286) - Classification 900 MPa 650 oC Manufacturing method optional - Technical .pdf
  • NF L24-122-2006 Aerospace series - Bolts normal hexagonal head close tolerance normal shank short thread in titanium alloy anodized with aluminium pigmented coating - Classificatio《航.pdf NF L24-122-2006 Aerospace series - Bolts normal hexagonal head close tolerance normal shank short thread in titanium alloy anodized with aluminium pigmented coating - Classificatio《航.pdf
  • NF L24-123-2008 Aerospace series - Bolts hexagon head relieved shank long thread in heat resisting steel FE-PM1708 (FV535) - Classification  1 000 MPa 550 oC - Unplated 《航空航天系列 FE-.pdf NF L24-123-2008 Aerospace series - Bolts hexagon head relieved shank long thread in heat resisting steel FE-PM1708 (FV535) - Classification 1 000 MPa 550 oC - Unplated 《航空航天系列 FE-.pdf
  • NF L24-140-2006 Aerospace series - Screws 100 o countersunk normal head offset cruciform recess threaded to head in titanium alloy anodized with aluminium pigmented coating metric t t.pdf NF L24-140-2006 Aerospace series - Screws 100 o countersunk normal head offset cruciform recess threaded to head in titanium alloy anodized with aluminium pigmented coating metric t t.pdf
  • NF L24-141-2006 Aerospace series - Screws 100 o countersunk normal head offset cruciform recess close tolerance normal shank short thread in titanium alloy anodized with aluminium  (a.pdf NF L24-141-2006 Aerospace series - Screws 100 o countersunk normal head offset cruciform recess close tolerance normal shank short thread in titanium alloy anodized with aluminium (a.pdf
  • NF L24-142-2006 Aerospace series - Screws pan head offset cruciform recess close tolerance normal shank short thread in titanium alloy anodized with aluminium pigmented coating - Cre).pdf NF L24-142-2006 Aerospace series - Screws pan head offset cruciform recess close tolerance normal shank short thread in titanium alloy anodized with aluminium pigmented coating - Cre).pdf
  • 相关搜索

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

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