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

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

1、计算机二级 JAVA-143 (1)及答案解析(总分:100.00,做题时间:90 分钟)一、简单应用题(总题数:3,分数:100.00)1.本程序的主窗口有一个“登录”按钮和“请输入密码”、“密码验证.”两个文本框,用户在“请输入密码”文本框中输入密码,单击“登录”按钮,然后与预先定义的密码比较(密码预设定为:password),如果相同,则在“密码验证.”文本框中提示“通过!”,否则提示“失败!”,“密码验证.”文本框是只读的,如图所示。 (分数:30.00)_2.本程序的功能是获取鼠标在窗口中的位置。当鼠标移进窗口,就会实时显示鼠标在窗口中的相对位置,例如显示为“鼠标的当前位置:X:Y”

2、X 为鼠标相对于窗口左上角的横坐标,Y 为鼠标相对于窗口左上角的纵坐标),如图所示。 (分数:30.00)_3.本程序监听用户在“输入密码”文本框中的输入。程序窗口中有两个文本框:“输入密码”和“偷窥密码”,在“输入密码”文本框中输入时显示*,而“偷窥密码”文本框中可实时显示在密码框中输入的真实字符(“偷窥密码”文本框是只读的),如图所示。 (分数:40.00)_计算机二级 JAVA-143 (1)答案解析(总分:100.00,做题时间:90 分钟)一、简单应用题(总题数:3,分数:100.00)1.本程序的主窗口有一个“登录”按钮和“请输入密码”、“密码验证.”两个文本框,用户在“请输入密

3、码”文本框中输入密码,单击“登录”按钮,然后与预先定义的密码比较(密码预设定为:password),如果相同,则在“密码验证.”文本框中提示“通过!”,否则提示“失败!”,“密码验证.”文本框是只读的,如图所示。 (分数:30.00)_正确答案:()解析:第 1 处:checkPassword.setEditable(false) 第 2 处:private JPasswordField myPassword2.本程序的功能是获取鼠标在窗口中的位置。当鼠标移进窗口,就会实时显示鼠标在窗口中的相对位置,例如显示为“鼠标的当前位置:X:Y”(X 为鼠标相对于窗口左上角的横坐标,Y 为鼠标相对于窗口

4、左上角的纵坐标),如图所示。 (分数:30.00)_正确答案:()解析:第 1 处:implements MouseMotionListener 第 2 处:extends MouseAdapter3.本程序监听用户在“输入密码”文本框中的输入。程序窗口中有两个文本框:“输入密码”和“偷窥密码”,在“输入密码”文本框中输入时显示*,而“偷窥密码”文本框中可实时显示在密码框中输入的真实字符(“偷窥密码”文本框是只读的),如图所示。 (分数:40.00)_正确答案:()解析:第 1 处:checkPassword.setEditable(false) 第 2 处:myPassword.getPassword()

展开阅读全文
相关资源
猜你喜欢
  • TCVN 7778-2008 Conformity assessment Guidance on the use of an organization-s quality management system in product certification《合格评定 产品认证中利用组织质量管理系统的指南》.pdf TCVN 7778-2008 Conformity assessment Guidance on the use of an organization-s quality management system in product certification《合格评定 产品认证中利用组织质量管理系统的指南》.pdf
  • TCVN 7779-2008 Conformity assessment Fundamentals of product certification《合格评定 产品认证的基本原则》.pdf TCVN 7779-2008 Conformity assessment Fundamentals of product certification《合格评定 产品认证的基本原则》.pdf
  • TCVN 7780-2008 Arrangements for the recognition and acceptance of conformity assessment results《合格评定结果认可和验收的布置》.pdf TCVN 7780-2008 Arrangements for the recognition and acceptance of conformity assessment results《合格评定结果认可和验收的布置》.pdf
  • TCVN 7781-2008 Guidance on statistical techniques for ISO 9001 2000《ISO 9001-2000统计技术指南》.pdf TCVN 7781-2008 Guidance on statistical techniques for ISO 9001 2000《ISO 9001-2000统计技术指南》.pdf
  • TCVN 7782-2008 Medical laboratories Particular requirements for quality and competence《医学实验室 质量和能力的详细要求》.pdf TCVN 7782-2008 Medical laboratories Particular requirements for quality and competence《医学实验室 质量和能力的详细要求》.pdf
  • TCVN 7785-2007 Milk and milk powder Determination of aflatoxin M1 content Clean-up by immunoaffinity chromatography and determination by thin-layer chromatography《牛奶和奶粉 黄曲霉毒素M含量的测定.pdf TCVN 7785-2007 Milk and milk powder Determination of aflatoxin M1 content Clean-up by immunoaffinity chromatography and determination by thin-layer chromatography《牛奶和奶粉 黄曲霉毒素M含量的测定.pdf
  • TCVN 7786-2007 Milk and milk products Guidelines for a standardized description of competitive enzyme immunoassays Determination of aflatoxin M1 content《乳和乳制品 竞争酵素免疫分析的标准化描述指南 黄曲霉毒.pdf TCVN 7786-2007 Milk and milk products Guidelines for a standardized description of competitive enzyme immunoassays Determination of aflatoxin M1 content《乳和乳制品 竞争酵素免疫分析的标准化描述指南 黄曲霉毒.pdf
  • TCVN 7787-2007 Dried skimmed milk Determination of vitamin D content using high-performance liquid chromatography《脱脂奶粉 通过高效液相色谱法对维生素D的含量进行测定》.pdf TCVN 7787-2007 Dried skimmed milk Determination of vitamin D content using high-performance liquid chromatography《脱脂奶粉 通过高效液相色谱法对维生素D的含量进行测定》.pdf
  • TCVN 7788-2007 Canned foods Determination of tin content by atomic absorption spectrophotometric method《罐头食品 通过原子吸收光谱测定法对锡含量进行测定》.pdf TCVN 7788-2007 Canned foods Determination of tin content by atomic absorption spectrophotometric method《罐头食品 通过原子吸收光谱测定法对锡含量进行测定》.pdf
  • 相关搜索

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

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