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

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

1、计算机二级 JAVA-96 及答案解析(总分:100.00,做题时间:90 分钟)一、综合应用题(总题数:3,分数:100.00)1.本程序是一个 Applet。页面加载时会弹出一个对话框,选择要画的图形,输入选择后单击“确定”按钮进入页面,同时页面绘出选择的图形,如图所示。 (分数:33.00)_2.本程序是一个 Applet,功能是监听画板上图形的选择。页面中有一个画板、一个下拉菜单和一个按钮,用鼠标单击画板上的图形,选中其中一个,用下拉菜单选择要填充的颜色,单击按钮,就以选中的颜色填充选中的图形,如图所示。 (分数:33.00)_3.本程序是一个 Applet,功能是用下拉菜单来选择文本

2、的字体、样式和大小。窗口中有一个文字标签和三个下拉菜单,下拉菜单分别用来设置文本的字体、样式和大小,字体下拉菜单中列出了当前系统中存在的所有字体,如图所示。 (分数:34.00)_计算机二级 JAVA-96 答案解析(总分:100.00,做题时间:90 分钟)一、综合应用题(总题数:3,分数:100.00)1.本程序是一个 Applet。页面加载时会弹出一个对话框,选择要画的图形,输入选择后单击“确定”按钮进入页面,同时页面绘出选择的图形,如图所示。 (分数:33.00)_正确答案:()解析:第 1 处:public void init() 第 2 处:public void paint( G

3、raphics g ) 第 3 处:JOptionPane.showMessageDialog( null, “输入数据错误“ )2.本程序是一个 Applet,功能是监听画板上图形的选择。页面中有一个画板、一个下拉菜单和一个按钮,用鼠标单击画板上的图形,选中其中一个,用下拉菜单选择要填充的颜色,单击按钮,就以选中的颜色填充选中的图形,如图所示。 (分数:33.00)_正确答案:()解析:第 1 处:comboBox.addActionListener(new ComboBoxListener() 第 2 处:Graphics2D g2D = (Graphics2D) g 第 3 处:clas

4、s ComboBoxListener implements ActionListener3.本程序是一个 Applet,功能是用下拉菜单来选择文本的字体、样式和大小。窗口中有一个文字标签和三个下拉菜单,下拉菜单分别用来设置文本的字体、样式和大小,字体下拉菜单中列出了当前系统中存在的所有字体,如图所示。 (分数:34.00)_正确答案:()解析:第 1 处:int fontStyles = Font.PLAIN, Font.BOLD, Font.ITALIC, BOLDITALIC 第 2 处:controlPanel.setBorder(border) 第 3 处:public void update(Graphics g)

展开阅读全文
相关资源
猜你喜欢
  • EN 13771-1-2016 en Compressors and condensing units for refrigeration - Performance testing and test methods - Part 1 Refrigerant compressors《制冷用压缩机和冷凝装置-性能检验和试验方法-第1部分 制冷压缩机》.pdf EN 13771-1-2016 en Compressors and condensing units for refrigeration - Performance testing and test methods - Part 1 Refrigerant compressors《制冷用压缩机和冷凝装置-性能检验和试验方法-第1部分 制冷压缩机》.pdf
  • EN 13771-2-2007 en Compressors and condensing units for refrigeration - Performance testing and test methods - Part 2 Condensing units《制冷用压缩机和冷凝装置 性能测试和试验方法 第2部分 冷凝装置》.pdf EN 13771-2-2007 en Compressors and condensing units for refrigeration - Performance testing and test methods - Part 2 Condensing units《制冷用压缩机和冷凝装置 性能测试和试验方法 第2部分 冷凝装置》.pdf
  • EN 13771-2-2017 en Compressors and condensing units for refrigeration - Performance testing and test methods - Part 2 Condensing units.pdf EN 13771-2-2017 en Compressors and condensing units for refrigeration - Performance testing and test methods - Part 2 Condensing units.pdf
  • EN 13772-2011 en Textiles and textile products - Burning behaviour - Curtains and drapes - Measurement of flame spread of vertically oriented specimens with large ignition source《织.pdf EN 13772-2011 en Textiles and textile products - Burning behaviour - Curtains and drapes - Measurement of flame spread of vertically oriented specimens with large ignition source《织.pdf
  • EN 13773-2003 en Textiles and textile products Burning behaviour Curtains and drapes Classification scheme《织物和纺织品 幕布和窗帘 燃烧性能 分类表》.pdf EN 13773-2003 en Textiles and textile products Burning behaviour Curtains and drapes Classification scheme《织物和纺织品 幕布和窗帘 燃烧性能 分类表》.pdf
  • EN 13774-2013 en Valves for gas distribution systems with maximum operating pressure less than or equal to 16 bar - Performance requirements《最大工作压力小于或等于16 bar的气体分配系统用阀门 性能要求》.pdf EN 13774-2013 en Valves for gas distribution systems with maximum operating pressure less than or equal to 16 bar - Performance requirements《最大工作压力小于或等于16 bar的气体分配系统用阀门 性能要求》.pdf
  • EN 13775-1-2003 en Railway applications Measuring of new and modified freight wagons Part 1 Measuring principles《轨道交通 新型和改型货车的测量 第1部分 测量原则》.pdf EN 13775-1-2003 en Railway applications Measuring of new and modified freight wagons Part 1 Measuring principles《轨道交通 新型和改型货车的测量 第1部分 测量原则》.pdf
  • EN 13775-2-2003 en Railway applications Measuring of new and modified freight wagons Part 2 Freight wagons with bogies《轨道交通 新型和改造的货运车辆的测量 第2部分 带转向架的货运车》.pdf EN 13775-2-2003 en Railway applications Measuring of new and modified freight wagons Part 2 Freight wagons with bogies《轨道交通 新型和改造的货运车辆的测量 第2部分 带转向架的货运车》.pdf
  • EN 13775-3-2003 en Railway applications Measuring of new and modified freight wagons Part 3 Freight wagons with 2 wheelsets《轨道交通 新型和改型货车的测量 第3部分 带两个轮组的货车》.pdf EN 13775-3-2003 en Railway applications Measuring of new and modified freight wagons Part 3 Freight wagons with 2 wheelsets《轨道交通 新型和改型货车的测量 第3部分 带两个轮组的货车》.pdf
  • 相关搜索

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

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