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

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

1、二级 JAVA 机试-179 及答案解析(总分:100.00,做题时间:90 分钟)一、1基本操作题(总题数:1,分数:30.00)程序如下:Java_1. javaimport java. applet. *;import java. awt. Graphics;* Found *public class Java_1 extends ( 1 ) public void paint( Graphics g)* Found *g. (2) (“欢迎你来参加 Java 语言考试!“,25,25);(分数:30.00)A.B.C.D._二、2简单应用题(总题数:1,分数:40.00)(分数:40.

2、00)A.B.C.D.A.B.C.D.三、3综合应用题(总题数:1,分数:30.00)(分数:30.00)_A.B.C.D.二级 JAVA 机试-179 答案解析(总分:100.00,做题时间:90 分钟)一、1基本操作题(总题数:1,分数:30.00)程序如下:Java_1. javaimport java. applet. *;import java. awt. Graphics;* Found *public class Java_1 extends ( 1 ) public void paint( Graphics g)* Found *g. (2) (“欢迎你来参加 Java 语言考

3、试!“,25,25);(分数:30.00)A. B.C.D.解析:_解析:二、2简单应用题(总题数:1,分数:40.00)(分数:40.00)A.B.C. D.解析:A.B.C. D.解析:分析 程序中,变量 i 索引数组中元素的行号,变量 j 索引每一行中元素的列号。在外层循环中,i 不能超过二维数组的行数,即 i 要小于数组的长度,所以 iaM- atrix.length;第二处要求输出元素,对于二维数组索引而言,应表示为 aMatrixij,即第 i 行第 j 列位置上的元素。三、3综合应用题(总题数:1,分数:30.00)(分数:30.00)_解析:A. B. C.D.解析:分析 Frame 是一个类,类 Java_2 只能继承自它,所以第一处应填入“extends”关键字。为了能让 Button 响应用户事件,必须为其注册监听器,所以第二处应填入“addActionListener,这里addActionListener( )方法的参数是 new Java_2( ),是因为 Java_2 实现了 ActionListen- er 接口,new Java_2( )也具有这个接口的性质。

展开阅读全文
相关资源
猜你喜欢
  • BS EN 50308-2004 Wind turbines - Protective measures - Requirements for design operation and maintenance《风轮机 防护措施 设计、运行和维护要求》.pdf BS EN 50308-2004 Wind turbines - Protective measures - Requirements for design operation and maintenance《风轮机 防护措施 设计、运行和维护要求》.pdf
  • BS EN 50310-2016 Telecommunications bonding networks for buildings and other structures《建筑物和其他构筑物的电信绑定网络》.pdf BS EN 50310-2016 Telecommunications bonding networks for buildings and other structures《建筑物和其他构筑物的电信绑定网络》.pdf
  • BS EN 50317-2012 Railway applications Current collection systems Requirements for and validation of measurements of the dynamic interaction between pantograph and overhead contact .pdf BS EN 50317-2012 Railway applications Current collection systems Requirements for and validation of measurements of the dynamic interaction between pantograph and overhead contact .pdf
  • BS EN 50318-2002 Railway applications - Current collection systems - Validation of simulation of the dynamic interaction between pantograph and overhead contact line《轨道交通 集流系统 导电弓和.pdf BS EN 50318-2002 Railway applications - Current collection systems - Validation of simulation of the dynamic interaction between pantograph and overhead contact line《轨道交通 集流系统 导电弓和.pdf
  • BS EN 50320-2001 Digital audio broadcasting system - Specification of the DAB command set for receivers (DCSR)《数字音频广播系统 接收器DBA指令集规范》.pdf BS EN 50320-2001 Digital audio broadcasting system - Specification of the DAB command set for receivers (DCSR)《数字音频广播系统 接收器DBA指令集规范》.pdf
  • BS EN 50324-1-2002 Piezoelectric properties of ceramic materials and components - Terms and definitions《陶瓷材料和元件的压电性能 术语和定义》.pdf BS EN 50324-1-2002 Piezoelectric properties of ceramic materials and components - Terms and definitions《陶瓷材料和元件的压电性能 术语和定义》.pdf
  • BS EN 50324-2-2002 Piezoelectric properties of ceramic materials and components - Methods of measurement - Low power《陶瓷材料和元件的压电性能 测量方法 低功率》.pdf BS EN 50324-2-2002 Piezoelectric properties of ceramic materials and components - Methods of measurement - Low power《陶瓷材料和元件的压电性能 测量方法 低功率》.pdf
  • BS EN 50324-3-2002 Piezoelectric properties of ceramic materials and components - Methods of measurement - High power《陶瓷材料和元件的压电性能 测量方法 高功率》.pdf BS EN 50324-3-2002 Piezoelectric properties of ceramic materials and components - Methods of measurement - High power《陶瓷材料和元件的压电性能 测量方法 高功率》.pdf
  • BS EN 50325-1-2002 Industrial communication subsystem based on ISO 11898 (CAN) for controller-device interfaces - General requirements《根据ISO 11898:控制器装置接口制定的工业通信子系统 一般要求》.pdf BS EN 50325-1-2002 Industrial communication subsystem based on ISO 11898 (CAN) for controller-device interfaces - General requirements《根据ISO 11898:控制器装置接口制定的工业通信子系统 一般要求》.pdf
  • 相关搜索

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

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