【计算机类职业资格】二级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)解析:

展开阅读全文
相关资源
猜你喜欢
  • GOST R 12 4 260-2011 Occupational safety standards system Special clothing for protection from mechanical action Method for determination of resistance to puncture《职业安全标准体系 机械动作防护用.pdf GOST R 12 4 260-2011 Occupational safety standards system Special clothing for protection from mechanical action Method for determination of resistance to puncture《职业安全标准体系 机械动作防护用.pdf
  • GOST R 12 4 270-2012 Occupational safety standards system Insulating suits Methods of pneumatic measuring definition integrity in dynamic conditions《职业安全标准体系 隔离服 动态条件下气动测量定义完整性方法》.pdf GOST R 12 4 270-2012 Occupational safety standards system Insulating suits Methods of pneumatic measuring definition integrity in dynamic conditions《职业安全标准体系 隔离服 动态条件下气动测量定义完整性方法》.pdf
  • GOST R 12 4 271-2012 Occupational safety standards system Insulating suits Method of definition of protection coefficient for gaseous substances《职业安全标准体系 隔离服 气态物质防护系数定义方法》.pdf GOST R 12 4 271-2012 Occupational safety standards system Insulating suits Method of definition of protection coefficient for gaseous substances《职业安全标准体系 隔离服 气态物质防护系数定义方法》.pdf
  • GOST R 12 4 273-2012 Occupational safety standards system Respiratory protective devices Self-contained open-circuit compressed air supply apparatus completed with face mask or moul re.pdf GOST R 12 4 273-2012 Occupational safety standards system Respiratory protective devices Self-contained open-circuit compressed air supply apparatus completed with face mask or moul re.pdf
  • GOST R 12 4 274-2012 Occupational safety standards system Personal respiratory protective means Self-contained open-circuit compressed air breathing apparatus incorporating a hood s Ma.pdf GOST R 12 4 274-2012 Occupational safety standards system Personal respiratory protective means Self-contained open-circuit compressed air breathing apparatus incorporating a hood s Ma.pdf
  • GOST R 12 4 275-2012 Occupational safety standards system Respiratory protective devices Poweredatmospheric air supply hose apparatus with helmet Technical requirements Test method.pdf GOST R 12 4 275-2012 Occupational safety standards system Respiratory protective devices Poweredatmospheric air supply hose apparatus with helmet Technical requirements Test method.pdf
  • GOST R 12 4 276-1-2012 Occupational safety standards system Respiratory protective devices Compressed air line supply breating apparatus Part 1 Apparatus with a full face mask Tech.pdf GOST R 12 4 276-1-2012 Occupational safety standards system Respiratory protective devices Compressed air line supply breating apparatus Part 1 Apparatus with a full face mask Tech.pdf
  • GOST R 12 4 276-2-2012 Occupational safety standards system Respiratory protective devices Compressed air line supply breating apparatus Part 2 Apparatus with half mask at positive业安.pdf GOST R 12 4 276-2-2012 Occupational safety standards system Respiratory protective devices Compressed air line supply breating apparatus Part 2 Apparatus with half mask at positive业安.pdf
  • GOST R 12 4 277-2012 Occupational safety standards system Respiratory protective devices Respiratory lung-governed protective device for escape with compressed air half mask and poetho.pdf GOST R 12 4 277-2012 Occupational safety standards system Respiratory protective devices Respiratory lung-governed protective device for escape with compressed air half mask and poetho.pdf
  • 相关搜索

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

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