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

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

1、二级 JAVA 机试-82 及答案解析(总分:100.00,做题时间:90 分钟)一、1基本操作题(总题数:1,分数:33.00)1.System.out.println(“h=“+h);(分数:33.00)_二、2简单应用题(总题数:1,分数:33.00)2.System.out.println(“没有鞍点!“);(分数:33.00)_三、3综合应用题(总题数:1,分数:34.00)3.下面是一个 Applet 程序,其功能是打印一个任意进制的乘法表。要求输入乘法表的进制,点击确定则打印出该乘法表。请改正程序中的错误(有下画线的语句),使程序能输出正确的结果。注意:不改动程序的结构,不得增行

2、或删行。import java.awt.*;import java.applet.*;import java.lang.*;public class exl2_3 extends Appletprivate TextField tf;private Button btn;public void init()tf=new TextField(25);add(tf);btn=new Button(“确定“);add(btn);resize(250,200);public void paint(Craphics g)tryint n= tf.getText();int i,j,x=20,y=60;f

3、or(i=0;in;+)for(j=1;j=n;j+)gdrawString(Integer.toString(i)+“*“+Integer.toString(j)+“=“+Integer.toString(i*j),i*x,j*y);catch(NuaberFormatEXCeption nfe)g.drawString(“error namber!“,20,50);public boolean action(Event e,Object o)if(o=“确定“)repaint();return true;elsereturn false;exl2_3.htmlHTMLHEADTITLEex

4、l2_3/TITLE/HEADBODYapplet code=“exl2_3.class“width=800 height=400/applet/BODY/HTMI(分数:34.00)_二级 JAVA 机试-82 答案解析(总分:100.00,做题时间:90 分钟)一、1基本操作题(总题数:1,分数:33.00)1.System.out.println(“h=“+h);(分数:33.00)_正确答案:(in;+)for(j=1;j=n;j+)gdrawString(Integer.toString(i)+“*“+Integer.toString(j)+“=“+Integer.toString(

5、i*j),i*x,j*y);catch(NuaberFormatEXCeption nfe)g.drawString(“error namber!“,20,50);public boolean action(Event e,Object o)if(o=“确定“)repaint();return true;elsereturn false;exl2_3.htmlHTMLHEADTITLEexl2_3/TITLE/HEADBODYapplet code=“exl2_3.class“width=800 height=400/applet/BODY/HTMI(分数:34.00)_正确答案:(Integer.parseInt(tf.getText()i=1;i=n;i+i*50+x,j*20+y)解析:

展开阅读全文
相关资源
猜你喜欢
  • BS EN 14255-3-2008 Measurement and nassessment of personal nexposures to nincoherent optical nradiation — nPart 3 UV-Radiation emitted by nthe sun《非相干光辐射下个人辐照量的测量和评估 太阳放射的紫外线辐射 n》.pdf BS EN 14255-3-2008 Measurement and nassessment of personal nexposures to nincoherent optical nradiation — nPart 3 UV-Radiation emitted by nthe sun《非相干光辐射下个人辐照量的测量和评估 太阳放射的紫外线辐射 n》.pdf
  • BS EN 14255-4-2006 Measurement and assessment of personal exposures to incoherent optical radiation - Terminology and quantities used in UV- visible and IR-exposure measurements《暴露.pdf BS EN 14255-4-2006 Measurement and assessment of personal exposures to incoherent optical radiation - Terminology and quantities used in UV- visible and IR-exposure measurements《暴露.pdf
  • BS EN 14256-2007 Adhesives for non-structural wood applications - Test method and requirements for resistance to static load《非结构用木材粘结剂 耐静荷载的试验方法和要求》.pdf BS EN 14256-2007 Adhesives for non-structural wood applications - Test method and requirements for resistance to static load《非结构用木材粘结剂 耐静荷载的试验方法和要求》.pdf
  • BS EN 14257-2006 Adhesives - Wood adhesives - Determination of tensile strength of lap joints at elevated temperature (WATT 91)《粘合剂 木材粘合剂 温度升高时搭接接头拉伸强度的测定(WATT 91)》.pdf BS EN 14257-2006 Adhesives - Wood adhesives - Determination of tensile strength of lap joints at elevated temperature (WATT 91)《粘合剂 木材粘合剂 温度升高时搭接接头拉伸强度的测定(WATT 91)》.pdf
  • BS EN 14258-2004 Structural adhesives - Mechanical behaviour of bonded joints subjected to short and long terms exposure at specified conditions of temperature《结构粘合剂 短期或长期暴露于特定温度条件.pdf BS EN 14258-2004 Structural adhesives - Mechanical behaviour of bonded joints subjected to short and long terms exposure at specified conditions of temperature《结构粘合剂 短期或长期暴露于特定温度条件.pdf
  • BS EN 14259-2003 Adhesives for floor covering - Requirements for mechanical and electrical performance《地板覆盖物用胶粘剂 机械性能和电气性能的要求》.pdf BS EN 14259-2003 Adhesives for floor covering - Requirements for mechanical and electrical performance《地板覆盖物用胶粘剂 机械性能和电气性能的要求》.pdf
  • BS EN 14260-2003 Derivatives from coal pyrolysis - Coal tar and pitch based binders and related products - Road tars - Characteristics and test methods《煤热解衍生物 煤焦油和沥青基粘结剂和相关产品 铺路焦油 .pdf BS EN 14260-2003 Derivatives from coal pyrolysis - Coal tar and pitch based binders and related products - Road tars - Characteristics and test methods《煤热解衍生物 煤焦油和沥青基粘结剂和相关产品 铺路焦油 .pdf
  • BS EN 14261-2003 Derivatives from coal pyrolysis - Coal tar and pitch based binders and related products - Refractory binders - Characteristics and test methods《煤热解衍生物 煤焦油和沥青基粘结剂和相.pdf BS EN 14261-2003 Derivatives from coal pyrolysis - Coal tar and pitch based binders and related products - Refractory binders - Characteristics and test methods《煤热解衍生物 煤焦油和沥青基粘结剂和相.pdf
  • BS EN 14262-2003 Derivatives from coal pyrolysis - Coal tar and pitch based binders and related products - Briquetting pitch - Characteristics and test methods《煤热解衍生物 煤焦油和沥青基粘结剂和相关.pdf BS EN 14262-2003 Derivatives from coal pyrolysis - Coal tar and pitch based binders and related products - Briquetting pitch - Characteristics and test methods《煤热解衍生物 煤焦油和沥青基粘结剂和相关.pdf
  • 相关搜索

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

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