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

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

1、计算机二级 JAVA-119 (1)及答案解析(总分:100.00,做题时间:90 分钟)一、综合应用题(总题数:3,分数:100.00)1.本程序是一个 Applet,功能是用鼠标来画不同颜色的图形。页面中有 5 个按钮:“画红色图形”、“画绿色图形”、“画蓝色图形”、“橡皮”和“清除”,单击前三个按钮中的一个后,按住鼠标左键或右键在面板中拖动就能画出对应颜色的线条,单击“橡皮”按钮后,按住鼠标左键或右键在面板中拖动,就能将面板中的图形擦除掉,单击“清除”按钮,就能将面板中所有的图形清除掉,如图所示。 (分数:30.00)_2.本程序的功能是监听鼠标对按钮的拖动操作。窗口中有一个按钮,鼠标可

2、以按住按钮在窗口中进行拖动,如图所示。 (分数:30.00)_3.本程序的功能是通过菜单打开一个图像文件。窗口中有一个“File”菜单,其中包括“Open”和“Exit”菜单项,单击“Open”菜单项可弹出一个打开对话框,选中一个图像文件后单击“打开”按钮返回主窗口,则选中的图像文件显示在窗口中。单击“Exit”菜单项可退出程序,如图所示。 (分数:40.00)_计算机二级 JAVA-119 (1)答案解析(总分:100.00,做题时间:90 分钟)一、综合应用题(总题数:3,分数:100.00)1.本程序是一个 Applet,功能是用鼠标来画不同颜色的图形。页面中有 5 个按钮:“画红色图形

3、画绿色图形”、“画蓝色图形”、“橡皮”和“清除”,单击前三个按钮中的一个后,按住鼠标左键或右键在面板中拖动就能画出对应颜色的线条,单击“橡皮”按钮后,按住鼠标左键或右键在面板中拖动,就能将面板中的图形擦除掉,单击“清除”按钮,就能将面板中所有的图形清除掉,如图所示。 (分数:30.00)_正确答案:()解析:第 1 处:extends Applet implements ActionListener,MouseMotionListener 第 2 处:public void paint(Graphics g) 第 3 处:public void actionPerformed(Actio

4、nEvent e)2.本程序的功能是监听鼠标对按钮的拖动操作。窗口中有一个按钮,鼠标可以按住按钮在窗口中进行拖动,如图所示。 (分数:30.00)_正确答案:()解析:第 1 处:button.addMouseListener(this) 第 2 处:e.getSource() instanceof Button 第 3 处:b=(Button)e.getSource()3.本程序的功能是通过菜单打开一个图像文件。窗口中有一个“File”菜单,其中包括“Open”和“Exit”菜单项,单击“Open”菜单项可弹出一个打开对话框,选中一个图像文件后单击“打开”按钮返回主窗口,则选中的图像文件显示在窗口中。单击“Exit”菜单项可退出程序,如图所示。 (分数:40.00)_正确答案:()解析:第 1 处:chooser = new JFileChooser() 第 2 处:setJMenuBar(menuBar) 第 3 处:public void actionPerformed(ActionEvent evt)

展开阅读全文
相关资源
猜你喜欢
  • JUS G C1 320-1983 Plastics Homopolymer and copolymer resins of vinyl chloride Designation《塑料 氯乙烯的均聚物和共聚物树脂 标示》.pdf JUS G C1 320-1983 Plastics Homopolymer and copolymer resins of vinyl chloride Designation《塑料 氯乙烯的均聚物和共聚物树脂 标示》.pdf
  • JUS G C1 325-1991 Plastics Unplasticized compounds of homopolymers and copolymers of vinyl chloride Classification designation and determination of properties《塑料 氯乙烯的均聚物和共聚物的不增塑化合物.pdf JUS G C1 325-1991 Plastics Unplasticized compounds of homopolymers and copolymers of vinyl chloride Classification designation and determination of properties《塑料 氯乙烯的均聚物和共聚物的不增塑化合物.pdf
  • JUS G C1 329-1982 Plastics PVC-plastisols types AP TO PT KZ AZand Dl《塑料 PVC 塑溶胶型AP;TO;PT;KZ;AZ和DI》.pdf JUS G C1 329-1982 Plastics PVC-plastisols types AP TO PT KZ AZand Dl《塑料 PVC 塑溶胶型AP;TO;PT;KZ;AZ和DI》.pdf
  • JUS G C1 330-1991 Plastics Plastlclzed compounds of homopolymers and copolymers of vinyl chloride (PVC-P) Classification designation and determination of properties《塑料 氯乙烯的均聚物和共聚物(.pdf JUS G C1 330-1991 Plastics Plastlclzed compounds of homopolymers and copolymers of vinyl chloride (PVC-P) Classification designation and determination of properties《塑料 氯乙烯的均聚物和共聚物(.pdf
  • JUS G C1 350-1992 Plastics Polystyrene (PS) moulding and extrusion materials Classification designation and determination of properties《塑料 聚苯乙烯(PS)模塑和冲压材料 特性的分类、标示和测定》.pdf JUS G C1 350-1992 Plastics Polystyrene (PS) moulding and extrusion materials Classification designation and determination of properties《塑料 聚苯乙烯(PS)模塑和冲压材料 特性的分类、标示和测定》.pdf
  • JUS G C1 352-1992 Plastics Impact-resistant polystyrene (SB) moulding and extrusion materials Classification designation and determination of properties《塑料 抗冲击聚苯乙烯(SB)压模和冲压材料 特性的分类.pdf JUS G C1 352-1992 Plastics Impact-resistant polystyrene (SB) moulding and extrusion materials Classification designation and determination of properties《塑料 抗冲击聚苯乙烯(SB)压模和冲压材料 特性的分类.pdf
  • JUS G C1 354-1992 Plastics Styrene acrylonitrile (SAN) copolymer moulding and extrusion materials Classification designation and determination of properties《塑料 苯乙烯-丙烯腈共聚物(SAN)压模和冲压.pdf JUS G C1 354-1992 Plastics Styrene acrylonitrile (SAN) copolymer moulding and extrusion materials Classification designation and determination of properties《塑料 苯乙烯-丙烯腈共聚物(SAN)压模和冲压.pdf
  • JUS G C1 356-1992 Plastics Acrylonitrile butadiene styrene (ABS) moulding and extrusion materials Classification designation and determination of properties《塑料 丙烯腈丁二烯苯乙烯CABS压模和冲压材料.pdf JUS G C1 356-1992 Plastics Acrylonitrile butadiene styrene (ABS) moulding and extrusion materials Classification designation and determination of properties《塑料 丙烯腈丁二烯苯乙烯CABS压模和冲压材料.pdf
  • JUS G C1 410-1984 Plastics Phenolic moulding materials Classification and technical requirements《塑料 酚类模塑材料 分类和技术要求》.pdf JUS G C1 410-1984 Plastics Phenolic moulding materials Classification and technical requirements《塑料 酚类模塑材料 分类和技术要求》.pdf
  • 相关搜索

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

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