【计算机类职业资格】计算机二级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 P98-217-1-1995 Tests relating to pavements Tests relating to macrotexture Part 1  measurement of the surface drainage capacity 《路面试验 宏观结构测定 第1部分 地面排水能力测量》.pdf NF P98-217-1-1995 Tests relating to pavements Tests relating to macrotexture Part 1 measurement of the surface drainage capacity 《路面试验 宏观结构测定 第1部分 地面排水能力测量》.pdf
  • NF P98-218-3-1995 Tests relating to pavements Evenness tests Part 3  determination of longitudinal evennes indexes calculated from profilometer data 《路面试验 滑度试验 第3部分 通过表面光度仪数据计算纵向平滑.pdf NF P98-218-3-1995 Tests relating to pavements Evenness tests Part 3 determination of longitudinal evennes indexes calculated from profilometer data 《路面试验 滑度试验 第3部分 通过表面光度仪数据计算纵向平滑.pdf
  • NF P98-219-1-1998 Tests relating to pavements Transversal evenness-related tests Part 1  measurement of the profile section of a roadway Definitions and classification 《路面试验 横向整体相关.pdf NF P98-219-1-1998 Tests relating to pavements Transversal evenness-related tests Part 1 measurement of the profile section of a roadway Definitions and classification 《路面试验 横向整体相关.pdf
  • NF P98-219-2-1999 Test relating to pavements Transversal eveness tests Part 2  continuous dynamic measurement of the profile section by materialisation of the intersection of a pla.pdf NF P98-219-2-1999 Test relating to pavements Transversal eveness tests Part 2 continuous dynamic measurement of the profile section by materialisation of the intersection of a pla.pdf
  • NF P98-219-3-1999 Test relating to pavements Transversal eveness tests Part 3  discontinuous dynamic measurement of the profile section 《路面试验 横向稳定性试验 第3部分 截面的非连续动态测量》.pdf NF P98-219-3-1999 Test relating to pavements Transversal eveness tests Part 3 discontinuous dynamic measurement of the profile section 《路面试验 横向稳定性试验 第3部分 截面的非连续动态测量》.pdf
  • NF P98-219-4-1996 Test relating to pavement Eveness test Part 4  continuous static measurement of a profile 《路面试验 滑度试验 第4部分 表面的连续静态测量》.pdf NF P98-219-4-1996 Test relating to pavement Eveness test Part 4 continuous static measurement of a profile 《路面试验 滑度试验 第4部分 表面的连续静态测量》.pdf
  • NF P98-219-5-1996 Test relating to pavement Eveness test Part 5  measurement of a deformation class by moving a 1 50 M rule 《与人行道有关的试验 平整试验 第5部分 通过一移动的A1 50M比例尺对变形级别的测量》.pdf NF P98-219-5-1996 Test relating to pavement Eveness test Part 5 measurement of a deformation class by moving a 1 50 M rule 《与人行道有关的试验 平整试验 第5部分 通过一移动的A1 50M比例尺对变形级别的测量》.pdf
  • NF P98-220-2-1994 Tests relating to pavements Skid test Part 2  method for obtaining the longitudinal skid resistance 《路面试验 滑动试验 第2部分 抗纵向滑动方法》.pdf NF P98-220-2-1994 Tests relating to pavements Skid test Part 2 method for obtaining the longitudinal skid resistance 《路面试验 滑动试验 第2部分 抗纵向滑动方法》.pdf
  • NF P98-220-3-1995 Test relating to pavements Tests relating to pavements measurement of skid resistance Part 3  method for measuring the transverse skid factor (transversal resista.pdf NF P98-220-3-1995 Test relating to pavements Tests relating to pavements measurement of skid resistance Part 3 method for measuring the transverse skid factor (transversal resista.pdf
  • 相关搜索

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

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