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

展开阅读全文
相关资源
猜你喜欢
  • DIN EN 13080-2003 Agricultural machinery - Manure spreaders Environmental protection - Requirements and test methods German version EN 13080 2002《农用机械 施肥机 环保 要求和试验方法》.pdf DIN EN 13080-2003 Agricultural machinery - Manure spreaders Environmental protection - Requirements and test methods German version EN 13080 2002《农用机械 施肥机 环保 要求和试验方法》.pdf
  • DIN EN 13081-2012 Tanks for transport of dangerous goods - Service equipment for tanks - Vapour collection adaptor and coupler German version EN 13081 2008+A1 2012《危险品运输用槽罐 槽罐用维护设备.pdf DIN EN 13081-2012 Tanks for transport of dangerous goods - Service equipment for tanks - Vapour collection adaptor and coupler German version EN 13081 2008+A1 2012《危险品运输用槽罐 槽罐用维护设备.pdf
  • DIN EN 13082-2012 Tanks for transport of dangerous goods - Service equipment for tanks - Vapour transfer valve German version EN 13082 2008+A1 2012《危险品运输用槽罐 槽罐用维护设备 蒸汽输送阀》.pdf DIN EN 13082-2012 Tanks for transport of dangerous goods - Service equipment for tanks - Vapour transfer valve German version EN 13082 2008+A1 2012《危险品运输用槽罐 槽罐用维护设备 蒸汽输送阀》.pdf
  • DIN EN 13083-2013 Tanks for transport of dangerous goods - Service equipment for tanks - Adaptor for bottom loading and unloading German version EN 13083 2008+A1 2013《危险品运输用槽罐 槽罐用服.pdf DIN EN 13083-2013 Tanks for transport of dangerous goods - Service equipment for tanks - Adaptor for bottom loading and unloading German version EN 13083 2008+A1 2013《危险品运输用槽罐 槽罐用服.pdf
  • DIN EN 13084-1-2007 Free-standing chimneys - Part 1 General requirements English version of DIN EN 13084-1 2007-05《独立式烟囱 第1部分 一般要求》.pdf DIN EN 13084-1-2007 Free-standing chimneys - Part 1 General requirements English version of DIN EN 13084-1 2007-05《独立式烟囱 第1部分 一般要求》.pdf
  • DIN EN 13084-2-2007 Free-standing chimneys - Part 2 Concrete chimneys English version of DIN EN 13084-2 2007-08《独立式烟囱 第2部分 混凝土烟囱》.pdf DIN EN 13084-2-2007 Free-standing chimneys - Part 2 Concrete chimneys English version of DIN EN 13084-2 2007-08《独立式烟囱 第2部分 混凝土烟囱》.pdf
  • DIN EN 13084-4-2005 Free-standing chimneys - Part 4 Brick liners - Design and execution English version of DIN EN 13084-4 2005《独立式烟囱 第4部分 砖衬 设计和施工》.pdf DIN EN 13084-4-2005 Free-standing chimneys - Part 4 Brick liners - Design and execution English version of DIN EN 13084-4 2005《独立式烟囱 第4部分 砖衬 设计和施工》.pdf
  • DIN EN 13084-5 Berichtigung 1-2006 Free-standing chimneys - Part 5 Material for brick liners - Product specifications German version EN 13084-5 2005 Corrigenda to DIN EN 13084-5 20.pdf DIN EN 13084-5 Berichtigung 1-2006 Free-standing chimneys - Part 5 Material for brick liners - Product specifications German version EN 13084-5 2005 Corrigenda to DIN EN 13084-5 20.pdf
  • DIN EN 13084-5-2005 Free-standing chimneys - Part 5 Material for brick liners - Product specifications German version EN 13084-5 2005《独立式烟囱 第5部分 砖衬垫材料 产品规范》.pdf DIN EN 13084-5-2005 Free-standing chimneys - Part 5 Material for brick liners - Product specifications German version EN 13084-5 2005《独立式烟囱 第5部分 砖衬垫材料 产品规范》.pdf
  • 相关搜索

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

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