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

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

1、计算机二级 JAVA-92 (1)及答案解析(总分:100.00,做题时间:90 分钟)一、简单应用题(总题数:3,分数:100.00)1.本程序的功能是将图像“exam_36.gif”显示在窗口的正中间,并且设置窗口的颜色为白色,如图所示。(分数:30.00)_2.本程序的功能是监听列表的选择,并将选中的内容显示在文本域中。窗口中有一个文本域和一个支持多项选择的列表,当选中列表中的一项或多项时,文本域中就会分行显示所选项的索引值和值,如图所示。 (分数:30.00)_3.本程序分行打印输出了当前系统中所有字体的名称。 _; public class exam_38 public static

2、 void main (String args) String fontNames=GraphicsEnvironment .getLocalGraphicsEnvironment().getAvailableFontFamilyNames(); for (int i=0; _; i+) System.out.println(fontNamesi); (分数:40.00)_计算机二级 JAVA-92 (1)答案解析(总分:100.00,做题时间:90 分钟)一、简单应用题(总题数:3,分数:100.00)1.本程序的功能是将图像“exam_36.gif”显示在窗口的正中间,并且设置窗口的颜色为

3、白色,如图所示。(分数:30.00)_正确答案:()解析:第 1 处:getImage(“exam_36.gif“) 第 2 处:g.drawImage2.本程序的功能是监听列表的选择,并将选中的内容显示在文本域中。窗口中有一个文本域和一个支持多项选择的列表,当选中列表中的一项或多项时,文本域中就会分行显示所选项的索引值和值,如图所示。 (分数:30.00)_正确答案:()解析:第 1 处:i selectedCourses.length 第 2 处:tempSeletedText.toString()3.本程序分行打印输出了当前系统中所有字体的名称。 _; public class exam_38 public static void main (String args) String fontNames=GraphicsEnvironment .getLocalGraphicsEnvironment().getAvailableFontFamilyNames(); for (int i=0; _; i+) System.out.println(fontNamesi); (分数:40.00)_正确答案:()解析:第 1 处:import java.awt.* 第 2 处:i fontNames.length

展开阅读全文
相关资源
猜你喜欢
  • ASTM B826-2009(2015) Standard Test Method for Monitoring Atmospheric Corrosion Tests by Electrical Resistance Probes《采用用电阻探针监测大气腐蚀试验的标准试验方法》.pdf ASTM B826-2009(2015) Standard Test Method for Monitoring Atmospheric Corrosion Tests by Electrical Resistance Probes《采用用电阻探针监测大气腐蚀试验的标准试验方法》.pdf
  • ASTM B827-2005 Standard Practice for Conducting Mixed Flowing Gas (MFG) Environmental Tests《传导混流气(MFG)环境试验的标准实施规程》.pdf ASTM B827-2005 Standard Practice for Conducting Mixed Flowing Gas (MFG) Environmental Tests《传导混流气(MFG)环境试验的标准实施规程》.pdf
  • ASTM B827-2005(2009)e1 Standard Practice for Conducting Mixed Flowing Gas (MFG) Environmental Tests.pdf ASTM B827-2005(2009)e1 Standard Practice for Conducting Mixed Flowing Gas (MFG) Environmental Tests.pdf
  • ASTM B827-2005(2009)e2 Standard Practice for Conducting Mixed Flowing Gas (MFG) Environmental Tests《传导混流气的环境试验的标准实施规程》.pdf ASTM B827-2005(2009)e2 Standard Practice for Conducting Mixed Flowing Gas (MFG) Environmental Tests《传导混流气的环境试验的标准实施规程》.pdf
  • ASTM B827-2005(2014) Standard Practice for Conducting Mixed Flowing Gas &40 MFG&41 Environmental Tests《传导混流气 (MFG) 的环境试验的标准实施规程》.pdf ASTM B827-2005(2014) Standard Practice for Conducting Mixed Flowing Gas &40 MFG&41 Environmental Tests《传导混流气 (MFG) 的环境试验的标准实施规程》.pdf
  • ASTM B828-2002 Standard Practice for Making Capillary Joints by Soldering of Copper and Copper Alloy Tube and Fittings《用铜、铜合金管和配件钎焊制作毛细管接缝的标准实施规程》.pdf ASTM B828-2002 Standard Practice for Making Capillary Joints by Soldering of Copper and Copper Alloy Tube and Fittings《用铜、铜合金管和配件钎焊制作毛细管接缝的标准实施规程》.pdf
  • ASTM B828-2002(2010) Standard Practice for Making Capillary Joints by Soldering of Copper and Copper Alloy Tube and Fittings《铜 铜合金管和配件钎焊制作毛细管接缝的标准实施规程》.pdf ASTM B828-2002(2010) Standard Practice for Making Capillary Joints by Soldering of Copper and Copper Alloy Tube and Fittings《铜 铜合金管和配件钎焊制作毛细管接缝的标准实施规程》.pdf
  • ASTM B828-2016 Standard Practice for Making Capillary Joints by Soldering of Copper and Copper Alloy Tube and Fittings《通过铜和铜合金管和配件的焊接来制备毛细管接头的标准实施规程》.pdf ASTM B828-2016 Standard Practice for Making Capillary Joints by Soldering of Copper and Copper Alloy Tube and Fittings《通过铜和铜合金管和配件的焊接来制备毛细管接头的标准实施规程》.pdf
  • ASTM B829-2004a Standard Specification for General Requirements for Nickel and Nickel Alloys Seamless Pipe and Tube《镍和镍合金无缝管一般要求的标准规范》.pdf ASTM B829-2004a Standard Specification for General Requirements for Nickel and Nickel Alloys Seamless Pipe and Tube《镍和镍合金无缝管一般要求的标准规范》.pdf
  • 相关搜索

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

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