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

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

1、计算机二级 JAVA-157 (1)及答案解析(总分:100.00,做题时间:90 分钟)一、简单应用题(总题数:3,分数:100.00)1.本程序是一个 Applet,页面中有一个文本框、一个文本域和一个按钮,在文本框中输入一个整数后,如果回车,则计算该数的因子并显示在文本域中,如果单击“Enter”按钮则求出小于该数的素数并显示在文本域中,如图所示。 (分数:30.00)_2.本程序是一个 Applet,功能是根据参数画圆。页面中有三个文本框,分别用于输入圆的位置坐标和圆的半径。分别输入圆左上角的横坐标、纵坐标以及半径,单击“确定”按钮后可以在面板上画出该圆,如图所示。 (分数:30.00

2、)_3.本程序是一个 Applet,使用了 CardLayout 布局管理器,程序中定义了 20 个卡片,每个卡片上都画了一个半径递增的红色圆,单击“first”按钮将显示第一个卡片,单击“next”按钮将依次显示下一个卡片,单击“last one”按钮将显示最后一个卡片,如图所示。 (分数:40.00)_计算机二级 JAVA-157 (1)答案解析(总分:100.00,做题时间:90 分钟)一、简单应用题(总题数:3,分数:100.00)1.本程序是一个 Applet,页面中有一个文本框、一个文本域和一个按钮,在文本框中输入一个整数后,如果回车,则计算该数的因子并显示在文本域中,如果单击“E

3、nter”按钮则求出小于该数的素数并显示在文本域中,如图所示。 (分数:30.00)_正确答案:()解析:第 1 处:extends Label 第 2 处:inputNumber.getText()2.本程序是一个 Applet,功能是根据参数画圆。页面中有三个文本框,分别用于输入圆的位置坐标和圆的半径。分别输入圆左上角的横坐标、纵坐标以及半径,单击“确定”按钮后可以在面板上画出该圆,如图所示。 (分数:30.00)_正确答案:()解析:第 1 处:extends Canvas 第 2 处:g.drawOval3.本程序是一个 Applet,使用了 CardLayout 布局管理器,程序中定义了 20 个卡片,每个卡片上都画了一个半径递增的红色圆,单击“first”按钮将显示第一个卡片,单击“next”按钮将依次显示下一个卡片,单击“last one”按钮将显示最后一个卡片,如图所示。 (分数:40.00)_正确答案:()解析:第 1 处:mycard.first(p) 第 2 处:mycard.last(p)

展开阅读全文
相关资源
猜你喜欢
  • EN 15652-2009 en Foodstuffs - Determination of niacin by HPLC《粮食 使用高效液相色谱法(HPLC)测定烟酸》.pdf EN 15652-2009 en Foodstuffs - Determination of niacin by HPLC《粮食 使用高效液相色谱法(HPLC)测定烟酸》.pdf
  • EN 15653-2009 en Packaging - Flexible aluminium tubes - Test method to check the resistance of the internal protective coating against ammonia《柔性铝管包装 内部防护涂层耐氨性检验的试验方法》.pdf EN 15653-2009 en Packaging - Flexible aluminium tubes - Test method to check the resistance of the internal protective coating against ammonia《柔性铝管包装 内部防护涂层耐氨性检验的试验方法》.pdf
  • EN 15655-2009 en Ductile iron pipes fittings and accessories - Internal polyurethane lining for pipes and fittings - Requirements and test methods《球墨铸铁管 管件及附件 管和配件用聚氨酯内衬 要求和试验方法》.pdf EN 15655-2009 en Ductile iron pipes fittings and accessories - Internal polyurethane lining for pipes and fittings - Requirements and test methods《球墨铸铁管 管件及附件 管和配件用聚氨酯内衬 要求和试验方法》.pdf
  • EN 15657-1-2009 en Acoustic properties of building elements and of buildings - Laboratory measurement of airborne and structure borne sound from building equipment - Part 1 Simplif.pdf EN 15657-1-2009 en Acoustic properties of building elements and of buildings - Laboratory measurement of airborne and structure borne sound from building equipment - Part 1 Simplif.pdf
  • EN 15657-2017 en Acoustic properties of building elements and of buildings - Laboratory measurement of structure-borne sound from building service equipment for all installation co.pdf EN 15657-2017 en Acoustic properties of building elements and of buildings - Laboratory measurement of structure-borne sound from building service equipment for all installation co.pdf
  • EN 15659-2009 en Secure storage units - Classification and methods of test for resistance to fire - Light fire storage units《安全存储装置 耐火性测试方法和分级 点火存储器单位》.pdf EN 15659-2009 en Secure storage units - Classification and methods of test for resistance to fire - Light fire storage units《安全存储装置 耐火性测试方法和分级 点火存储器单位》.pdf
  • EN 15662-2008 en Foods of plant origin - Determination of pesticide residues using GC-MS and or LC-MS MS following acetonitrile extraction partitioning and clean-up by dispersive S.pdf EN 15662-2008 en Foods of plant origin - Determination of pesticide residues using GC-MS and or LC-MS MS following acetonitrile extraction partitioning and clean-up by dispersive S.pdf
  • EN 15663-2009 en Railway applications - Definition of vehicle reference masses (Incorporating corrigendum March 2010)《轨道交通 车体定义 2010年3月合并勘误表》.pdf EN 15663-2009 en Railway applications - Definition of vehicle reference masses (Incorporating corrigendum March 2010)《轨道交通 车体定义 2010年3月合并勘误表》.pdf
  • EN 15663-2017 en Railway applications - Definition of vehicle reference masses.pdf EN 15663-2017 en Railway applications - Definition of vehicle reference masses.pdf
  • 相关搜索

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

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