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

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

1、计算机二级 JAVA-102 及答案解析(总分:100.00,做题时间:90 分钟)一、综合应用题(总题数:3,分数:100.00)1.本程序的功能是在文本域面板中添加一个带有行数的面板。窗口中有一个文本域,在文本域的左侧有一个带有数字的面板,该面板上的数字指示着文本域中的行数,如图所示。 (分数:33.00)_2.本程序为窗口添加了一个状态条。在窗口中有一个文本域,在文本域下方有一个状态条,状态条上显示了当前的时间,以及键盘上的大写锁定、数码锁定和滚动锁定是否打开,如图所示。 (分数:33.00)_3.本程序中,采用的是边框布局管理器,每个布局块放置了一个按钮,单击其中一个按钮,则该按钮隐藏

2、起来,单击其他按钮,则原来隐藏的按钮显示出来,而单击的按钮隐藏起来。 (分数:34.00)_计算机二级 JAVA-102 答案解析(总分:100.00,做题时间:90 分钟)一、综合应用题(总题数:3,分数:100.00)1.本程序的功能是在文本域面板中添加一个带有行数的面板。窗口中有一个文本域,在文本域的左侧有一个带有数字的面板,该面板上的数字指示着文本域中的行数,如图所示。 (分数:33.00)_正确答案:()解析:第 1 处:scrollPane.setPreferredSize(new Dimension(300, 250) 第 2 处:setDefaultCloseOperation

3、 JFrame.EXIT_ON_CLOSE ) 第 3 处:LineNumber lineNumber = new LineNumber( textPane )2.本程序为窗口添加了一个状态条。在窗口中有一个文本域,在文本域下方有一个状态条,状态条上显示了当前的时间,以及键盘上的大写锁定、数码锁定和滚动锁定是否打开,如图所示。 (分数:33.00)_正确答案:()解析:第 1 处:jtextpane.addKeyListener(new KeyAdapter() 第 2 处:capsLockField.addMouseListener(new MouseAdapter() 第 3 处:public String showTodayDate()3.本程序中,采用的是边框布局管理器,每个布局块放置了一个按钮,单击其中一个按钮,则该按钮隐藏起来,单击其他按钮,则原来隐藏的按钮显示出来,而单击的按钮隐藏起来。 (分数:34.00)_正确答案:()解析:第 1 处:private BorderLayout layout 第 2 处:c.setLayout( layout ) 第 3 处:b i .setViSible( true )

展开阅读全文
相关资源
猜你喜欢
  • ASTM G40-2015 Standard Terminology Relating to Wear and Erosion《有关磨损和侵蚀的标准术语》.pdf ASTM G40-2015 Standard Terminology Relating to Wear and Erosion《有关磨损和侵蚀的标准术语》.pdf
  • ASTM G40-2017 Standard Terminology Relating to Wear and Erosion《与磨损和腐蚀有关的标准术语》.pdf ASTM G40-2017 Standard Terminology Relating to Wear and Erosion《与磨损和腐蚀有关的标准术语》.pdf
  • ASTM G41-1990(2006) Standard Practice for Determining Cracking Susceptibility of Metals Exposed Under Stress to a Hot Salt Environment《测定金属在热盐环境下应力断裂敏感性》.pdf ASTM G41-1990(2006) Standard Practice for Determining Cracking Susceptibility of Metals Exposed Under Stress to a Hot Salt Environment《测定金属在热盐环境下应力断裂敏感性》.pdf
  • ASTM G41-1990(2013) Standard Practice for Determining Cracking Susceptibility of Metals Exposed Under Stress to a Hot Salt Environment《测定金属暴露在热盐环境应力条件下裂纹敏感性的标准实施规程》.pdf ASTM G41-1990(2013) Standard Practice for Determining Cracking Susceptibility of Metals Exposed Under Stress to a Hot Salt Environment《测定金属暴露在热盐环境应力条件下裂纹敏感性的标准实施规程》.pdf
  • ASTM G42-1996(2003) Standard Test Method for Cathodic Disbonding of Pipeline Coatings Subjected to Elevated Temperatures《在高温条件下管道覆层阴极剥离合作用的试验方法》.pdf ASTM G42-1996(2003) Standard Test Method for Cathodic Disbonding of Pipeline Coatings Subjected to Elevated Temperatures《在高温条件下管道覆层阴极剥离合作用的试验方法》.pdf
  • ASTM G42-2011 Standard Test Method for Cathodic Disbonding of Pipeline Coatings Subjected to Elevated Temperatures 《在高温条件下管道覆层阴极剥离合作用的标准试验方法》.pdf ASTM G42-2011 Standard Test Method for Cathodic Disbonding of Pipeline Coatings Subjected to Elevated Temperatures 《在高温条件下管道覆层阴极剥离合作用的标准试验方法》.pdf
  • ASTM G44-1999(2005) Standard Practice for Exposure of Metals and Alloys by Alternate Immersion in Neutral 3 5% Sodium Chloride Solution《在3 5%氯化钠中性溶液中用交替浸渍法的金属及合金暴露的标准实施规程》.pdf ASTM G44-1999(2005) Standard Practice for Exposure of Metals and Alloys by Alternate Immersion in Neutral 3 5% Sodium Chloride Solution《在3 5%氯化钠中性溶液中用交替浸渍法的金属及合金暴露的标准实施规程》.pdf
  • ASTM G44-1999(2013) Standard Practice for Exposure of Metals and Alloys by Alternate Immersion in Neutral 3 5&8201 % Sodium Chloride Solution《通过在3 5%氯化钠中性溶液中交替浸泡的金属及合金暴露的标准实施规程》.pdf ASTM G44-1999(2013) Standard Practice for Exposure of Metals and Alloys by Alternate Immersion in Neutral 3 5&8201 % Sodium Chloride Solution《通过在3 5%氯化钠中性溶液中交替浸泡的金属及合金暴露的标准实施规程》.pdf
  • ASTM G46-1994(2005) Standard Guide for Examination and Evaluation of Pitting Corrosion《斑蚀检验和评定的标准指南》.pdf ASTM G46-1994(2005) Standard Guide for Examination and Evaluation of Pitting Corrosion《斑蚀检验和评定的标准指南》.pdf
  • 相关搜索

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

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