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

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

1、计算机二级 JAVA-97 及答案解析(总分:100.00,做题时间:90 分钟)一、综合应用题(总题数:3,分数:100.00)1.本程序是一个 Applet,功能是计算前 n 个自然数的和,程序中用进度条来表示计算的进程。页面中有两个文本框、两个按钮和一个进度条,在第一个文本框中输入要计算的自然数的个数,单击“开始”按钮开始进行计算,进度条同步显示计算完成的情况,如图所示。 (分数:33.00)_2.本程序的功能是获得系统剪贴板中的内容。窗口中有一个“Edit”菜单和一个文本域,“Edit”菜单中有“Cut”、“Copy”和“Paste”菜单项,在文本域中输入内容,可以通过菜单进行剪切、复

2、制和粘贴操作,如果系统剪贴板为空,又做粘贴操作的话,则设置文本域中背景色为红色,并显示错误信息,如图所示。 (分数:33.00)_3.本程序的功能是监听窗口在屏幕中的位置。程序中有三个窗口,主窗口根据两个子窗口在屏幕中的位置及大小,并在主窗口中以矩形的方式绘制出来,当拖动两个子窗口时,主窗口中跟踪显示子窗口的位置,即窗口中的矩形随着子窗口的移动对应移动,如图所示。 (分数:34.00)_计算机二级 JAVA-97 答案解析(总分:100.00,做题时间:90 分钟)一、综合应用题(总题数:3,分数:100.00)1.本程序是一个 Applet,功能是计算前 n 个自然数的和,程序中用进度条来表

3、示计算的进程。页面中有两个文本框、两个按钮和一个进度条,在第一个文本框中输入要计算的自然数的个数,单击“开始”按钮开始进行计算,进度条同步显示计算完成的情况,如图所示。 (分数:33.00)_正确答案:()解析:第 1 处:timer = new Timer(0, new TimerListener() 第 2 处:JButton button = (JButton) e.getSource() 第 3 处:timer.start()2.本程序的功能是获得系统剪贴板中的内容。窗口中有一个“Edit”菜单和一个文本域,“Edit”菜单中有“Cut”、“Copy”和“Paste”菜单项,在文本域中

4、输入内容,可以通过菜单进行剪切、复制和粘贴操作,如果系统剪贴板为空,又做粘贴操作的话,则设置文本域中背景色为红色,并显示错误信息,如图所示。 (分数:33.00)_正确答案:()解析:第 1 处:setMenuBar(mb) 第 2 处:m.getItem(i).addActionListener(this) 第 3 处:String s = textArea.getSelectedText()3.本程序的功能是监听窗口在屏幕中的位置。程序中有三个窗口,主窗口根据两个子窗口在屏幕中的位置及大小,并在主窗口中以矩形的方式绘制出来,当拖动两个子窗口时,主窗口中跟踪显示子窗口的位置,即窗口中的矩形随着子窗口的移动对应移动,如图所示。 (分数:34.00)_正确答案:()解析:第 1 处:extends Frame implements ComponentListener 第 2 处:public void watch(Component c) 第 3 处:c.addComponentListener(this)

展开阅读全文
相关资源
猜你喜欢
  • ETSI TR 126 904-2017 Universal Mobile Telecommunications System (UMTS) LTE Improved video coding support (V14 0 0 3GPP TR 26 904 version 14 0 0 Release 14)《通用移动通信系统(UMTS) 长期演进技术(LT.pdf ETSI TR 126 904-2017 Universal Mobile Telecommunications System (UMTS) LTE Improved video coding support (V14 0 0 3GPP TR 26 904 version 14 0 0 Release 14)《通用移动通信系统(UMTS) 长期演进技术(LT.pdf
  • ETSI TR 126 904-2018 Universal Mobile Telecommunications System (UMTS) LTE Improved video coding support (V15 0 1 3GPP TR 26 904 version 15 0 1 Release 15).pdf ETSI TR 126 904-2018 Universal Mobile Telecommunications System (UMTS) LTE Improved video coding support (V15 0 1 3GPP TR 26 904 version 15 0 1 Release 15).pdf
  • ETSI TR 126 905-2016 Digital cellular telecommunications system (Phase 2+) Universal Mobile Telecommunications System (UMTS) LTE Mobile stereoscopic 3D video (V13 0 0 3GPP TR 26 90.pdf ETSI TR 126 905-2016 Digital cellular telecommunications system (Phase 2+) Universal Mobile Telecommunications System (UMTS) LTE Mobile stereoscopic 3D video (V13 0 0 3GPP TR 26 90.pdf
  • ETSI TR 126 905-2017 Universal Mobile Telecommunications System (UMTS) LTE Mobile stereoscopic 3D video (V14 0 0 3GPP TR 26 905 version 14 0 0 Release 14)《通用移动通信系统(UMTS) 长期演进技术(LTE.pdf ETSI TR 126 905-2017 Universal Mobile Telecommunications System (UMTS) LTE Mobile stereoscopic 3D video (V14 0 0 3GPP TR 26 905 version 14 0 0 Release 14)《通用移动通信系统(UMTS) 长期演进技术(LTE.pdf
  • ETSI TR 126 905-2018 Universal Mobile Telecommunications System (UMTS) LTE Mobile stereoscopic 3D video (V15 0 0 3GPP TR 26 905 version 15 0 0 Release 15).pdf ETSI TR 126 905-2018 Universal Mobile Telecommunications System (UMTS) LTE Mobile stereoscopic 3D video (V15 0 0 3GPP TR 26 905 version 15 0 0 Release 15).pdf
  • ETSI TR 126 906-2016 Digital cellular telecommunications system (Phase 2+) Universal Mobile Telecommunications System (UMTS) LTE Evaluation of High Efficiency Video Coding (HEVC) f.pdf ETSI TR 126 906-2016 Digital cellular telecommunications system (Phase 2+) Universal Mobile Telecommunications System (UMTS) LTE Evaluation of High Efficiency Video Coding (HEVC) f.pdf
  • ETSI TR 126 906-2017 Universal Mobile Telecommunications System (UMTS) LTE Evaluation of High Efficiency Video Coding (HEVC) for 3GPP services (V14 0 0 3GPP TR 26 906 version 14 0 .pdf ETSI TR 126 906-2017 Universal Mobile Telecommunications System (UMTS) LTE Evaluation of High Efficiency Video Coding (HEVC) for 3GPP services (V14 0 0 3GPP TR 26 906 version 14 0 .pdf
  • ETSI TR 126 906-2018 Universal Mobile Telecommunications System (UMTS) LTE Evaluation of High Efficiency Video Coding (HEVC) for 3GPP services (V15 0 0 3GPP TR 26 906 version 15 0 .pdf ETSI TR 126 906-2018 Universal Mobile Telecommunications System (UMTS) LTE Evaluation of High Efficiency Video Coding (HEVC) for 3GPP services (V15 0 0 3GPP TR 26 906 version 15 0 .pdf
  • ETSI TR 126 907-2016 Digital cellular telecommunications system (Phase 2+) Universal Mobile Telecommunications System (UMTS) LTE HTML5 for a new presentation layer in 3GPP services.pdf ETSI TR 126 907-2016 Digital cellular telecommunications system (Phase 2+) Universal Mobile Telecommunications System (UMTS) LTE HTML5 for a new presentation layer in 3GPP services.pdf
  • 相关搜索

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

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