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

展开阅读全文
相关资源
猜你喜欢
  • NEN-ISO 9653-1994 Adhesives Test methods for shear impact strength of adhesive bonds(ISO 9653 1991)《ISO 9653-1991 粘合剂 粘合剂的剪切冲击强度的测定方法》.pdf NEN-ISO 9653-1994 Adhesives Test methods for shear impact strength of adhesive bonds(ISO 9653 1991)《ISO 9653-1991 粘合剂 粘合剂的剪切冲击强度的测定方法》.pdf
  • NEN-ISO 9661-1993 Information processing Data interchange on 12 7 mm (o 5 in) magnetic tape cartridges 18 tracks 1491 data bytes per millimetre (37871 data bytes per inch) (ISO 966.pdf NEN-ISO 9661-1993 Information processing Data interchange on 12 7 mm (o 5 in) magnetic tape cartridges 18 tracks 1491 data bytes per millimetre (37871 data bytes per inch) (ISO 966.pdf
  • NEN-ISO 9775-1993 Small craft Remote steering systems for single outboards motors of 15 kW to 40 kW power (ISO 9775 1990)《ISO 9775-1990小艇 功率15kW~40kW舷外挂机的遥控操作系统》.pdf NEN-ISO 9775-1993 Small craft Remote steering systems for single outboards motors of 15 kW to 40 kW power (ISO 9775 1990)《ISO 9775-1990小艇 功率15kW~40kW舷外挂机的遥控操作系统》.pdf
  • NEN-ISO 9873-1994 Reusable metal dental mirrors and handles(ISO 9873 1990)《ISO 9873-1990 可重复使用牙镜和把手》.pdf NEN-ISO 9873-1994 Reusable metal dental mirrors and handles(ISO 9873 1990)《ISO 9873-1990 可重复使用牙镜和把手》.pdf
  • NEN-ISO 9888-1993 Water quality Evaluation of the aerobic biodegradability of organic compounds in an aqueous medium Static test (Zahn-Wellens method) (ISO 9888 1991)《水质 有机化合物在水介质中.pdf NEN-ISO 9888-1993 Water quality Evaluation of the aerobic biodegradability of organic compounds in an aqueous medium Static test (Zahn-Wellens method) (ISO 9888 1991)《水质 有机化合物在水介质中.pdf
  • NEN-ISO 9992-1-1994 Financial transaction cards Messages between the integrated circuit card and the card accepting device Part 1 Concepts and structures (ISO 9992-1 1990)《ISO 9992.pdf NEN-ISO 9992-1-1994 Financial transaction cards Messages between the integrated circuit card and the card accepting device Part 1 Concepts and structures (ISO 9992-1 1990)《ISO 9992.pdf
  • NEN-ISO IEC 1864-1994 Information processing Unrecorded 12 7 mm (0 5 in) wide magnetic tape for information interchange 32 ftpmm (800 ftpi) NRZI 126 ftpmm (3200 ftpi) phase encoded 199.pdf NEN-ISO IEC 1864-1994 Information processing Unrecorded 12 7 mm (0 5 in) wide magnetic tape for information interchange 32 ftpmm (800 ftpi) NRZI 126 ftpmm (3200 ftpi) phase encoded 199.pdf
  • NEN-ISO IEC 8073-1994 Information technology Telecommunications and information exchange between systems Open Systems Interconnection (OSI) Protocol for providing the connection-mo93)《.pdf NEN-ISO IEC 8073-1994 Information technology Telecommunications and information exchange between systems Open Systems Interconnection (OSI) Protocol for providing the connection-mo93)《.pdf
  • NEN-ISO IEC 8632-1-1994 Information technology Computer graphics Metafile for the storage and transfer of picture description information Part 1 Functional specification (ISO IEC 8.pdf NEN-ISO IEC 8632-1-1994 Information technology Computer graphics Metafile for the storage and transfer of picture description information Part 1 Functional specification (ISO IEC 8.pdf
  • 相关搜索

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

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