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

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

1、计算机二级 JAVA-156 (1)及答案解析(总分:100.00,做题时间:90 分钟)一、简单应用题(总题数:3,分数:100.00)1.本程序是一个 Applet,页面中包括两个列表和两个文本域,第一个列表列出了要计算的表达式,第二个列表列出计算表达式中的项数,点击第一个列表中的项选中要计算的表达式并显示在第一个文本域中,双击第二个列表要计算的项数,就能在第二个文本域中输出计算结果,如图所示。 (分数:30.00)_2.本程序是一个 Applet,页面中有一个列表和一个面板,列表中列出了系统中所有的字体,选中列表中的字体后,右侧文本的字体会随之改变(初始状态右侧面板中没有文本,选中一种字

2、体后,将以该字体显示文本“欢迎学习 Java!”),如图所示。 (分数:30.00)_3.本程序是一个 Applet,页面中有一个按钮“横向移动”和一个标签“我可以被种植”,初始单击按钮时,按钮做横向向右移动,碰到标签后标签消失,并且按钮的名称变为“纵向移动”,如果继续单击按钮,则按钮做纵向向下移动,如图所示。 (分数:40.00)_计算机二级 JAVA-156 (1)答案解析(总分:100.00,做题时间:90 分钟)一、简单应用题(总题数:3,分数:100.00)1.本程序是一个 Applet,页面中包括两个列表和两个文本域,第一个列表列出了要计算的表达式,第二个列表列出计算表达式中的项数

3、点击第一个列表中的项选中要计算的表达式并显示在第一个文本域中,双击第二个列表要计算的项数,就能在第二个文本域中输出计算结果,如图所示。 (分数:30.00)_正确答案:()解析:第 1 处:list2.addActionListener(this) 第 2 处:index2.本程序是一个 Applet,页面中有一个列表和一个面板,列表中列出了系统中所有的字体,选中列表中的字体后,右侧文本的字体会随之改变(初始状态右侧面板中没有文本,选中一种字体后,将以该字体显示文本“欢迎学习 Java!”),如图所示。 (分数:30.00)_正确答案:()解析:第 1 处:i 第 2 处:text.setFont(f)3.本程序是一个 Applet,页面中有一个按钮“横向移动”和一个标签“我可以被种植”,初始单击按钮时,按钮做横向向右移动,碰到标签后标签消失,并且按钮的名称变为“纵向移动”,如果继续单击按钮,则按钮做纵向向下移动,如图所示。 (分数:40.00)_正确答案:()解析:第 1 处:Rectangle 第 2 处:label.getBounds()

展开阅读全文
相关资源
猜你喜欢
  • ASTM F2659-2010(2015) Standard Guide for Preliminary Evaluation of Comparative Moisture Condition of Concrete Gypsum Cement and Other Floor Slabs and Screeds Using a Non-Destructiv.pdf ASTM F2659-2010(2015) Standard Guide for Preliminary Evaluation of Comparative Moisture Condition of Concrete Gypsum Cement and Other Floor Slabs and Screeds Using a Non-Destructiv.pdf
  • ASTM F2660-2012 Standard Test Method for Qualifying Coatings for Use on A490 Structural Bolts Relative to Hydrogen Embrittlement《用于A490氢脆结构螺栓的合格涂层的标准试验方法》.pdf ASTM F2660-2012 Standard Test Method for Qualifying Coatings for Use on A490 Structural Bolts Relative to Hydrogen Embrittlement《用于A490氢脆结构螺栓的合格涂层的标准试验方法》.pdf
  • ASTM F2660-2013 Standard Test Method for Qualifying Coatings for Use on A490 Structural Bolts Relative to Environmental Hydrogen Embrittlement《涉及环境氢脆的A490结构螺栓用涂层合格性的标准试验方法》.pdf ASTM F2660-2013 Standard Test Method for Qualifying Coatings for Use on A490 Structural Bolts Relative to Environmental Hydrogen Embrittlement《涉及环境氢脆的A490结构螺栓用涂层合格性的标准试验方法》.pdf
  • ASTM F2661-2007 Standard Test Method for Determining the Tribological Behavior and the Relative Lifetime of a Fluid Lubricant using the Spiral Orbit Tribometer《用螺旋轨道磨擦计测定液体润滑剂磨擦学性能.pdf ASTM F2661-2007 Standard Test Method for Determining the Tribological Behavior and the Relative Lifetime of a Fluid Lubricant using the Spiral Orbit Tribometer《用螺旋轨道磨擦计测定液体润滑剂磨擦学性能.pdf
  • ASTM F2661-2007(2015) Standard Test Method for Determining the Tribological Behavior and the Relative Lifetime of a Fluid Lubricant using the Spiral Orbit Tribometer《采用螺旋轨道磨擦计测定液体润.pdf ASTM F2661-2007(2015) Standard Test Method for Determining the Tribological Behavior and the Relative Lifetime of a Fluid Lubricant using the Spiral Orbit Tribometer《采用螺旋轨道磨擦计测定液体润.pdf
  • ASTM F2662-2008 Standard Guide for Minimum Training of Dispatchers and Telecommunicators of SAR Incidents《处理搜救(SAR)事故调度员和电信人员最低程度培训的标准指南》.pdf ASTM F2662-2008 Standard Guide for Minimum Training of Dispatchers and Telecommunicators of SAR Incidents《处理搜救(SAR)事故调度员和电信人员最低程度培训的标准指南》.pdf
  • ASTM F2662-2008(2014) Standard Guide for Minimum Training of Dispatchers and Telecommunicators of SAR Incidents《处理搜救 (SAR) 事故调度员和电信人员最低程度培训的标准指南》.pdf ASTM F2662-2008(2014) Standard Guide for Minimum Training of Dispatchers and Telecommunicators of SAR Incidents《处理搜救 (SAR) 事故调度员和电信人员最低程度培训的标准指南》.pdf
  • ASTM F2663-2007 Standard Test Method for Bead Unseating of Tubeless Tires for Motor Vehicles with GVWR of 4536 kg (10 000 lb) or Less《等于或少于4536kg(10 000 lb)额定总重(GVWR)的摩托车用无管轮胎脱圈的标准.pdf ASTM F2663-2007 Standard Test Method for Bead Unseating of Tubeless Tires for Motor Vehicles with GVWR of 4536 kg (10 000 lb) or Less《等于或少于4536kg(10 000 lb)额定总重(GVWR)的摩托车用无管轮胎脱圈的标准.pdf
  • ASTM F2663-2007a Standard Test Method for Bead Unseating of Tubeless Tires for Motor Vehicles with GVWR of 4536 kg (10 000 lb) or Less《等于或少于4536kg(10 000 lb)额定总重(GVWR)的摩托车用无管轮胎脱圈的标.pdf ASTM F2663-2007a Standard Test Method for Bead Unseating of Tubeless Tires for Motor Vehicles with GVWR of 4536 kg (10 000 lb) or Less《等于或少于4536kg(10 000 lb)额定总重(GVWR)的摩托车用无管轮胎脱圈的标.pdf
  • 相关搜索

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

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