




已阅读5页,还剩35页未读, 继续免费阅读
版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
We will continue to improve the companys internal control system, and steady improvement in ability to manage and control, optimize business processes, to ensure smooth processes, responsibilities in place; to further strengthen internal controls, play a control post independent oversight role of evaluation complying with third-party responsibility; to actively make use of internal audit tools detect potential management, streamline, standardize related transactions, strengthening operations in accordance with law. Deepening the information management to ensure full communication zero resistance. To constantly perfect ERP, and BFS+, and PI, and MIS, and SCM, information system based construction, full integration information system, achieved information resources shared; to expand Portal system application of breadth and depth, play information system on enterprise of Assistant role; to perfect daily run maintenance operation of records, promote problem reasons analysis and system handover; to strengthening BFS+, and ERP, and SCM, technology application of training, improve employees application information system of capacity and level. Humanistic care to ensure zero. To strengthening Humanities care, continues to foster company wind clear, and gas are, and heart Shun of culture atmosphere; strengthening love helped trapped, care difficult employees; carried out style activities, rich employees life; strengthening health and labour protection, organization career health medical, control career against; continues to implementation psychological warning prevention system, training employees health of character, and stable of mood and enterprising of attitude, created friendly fraternity of Humanities environment. To strengthen risk management, ensure that the business of zero risk. To strengthened business plans management, will business business plans cover to all level, ensure the business can control in control; to close concern financial, and coal electric linkage, and energy-saving scheduling, national policy trends, strengthening track, active should; to implementation State-owned assets method, further specification business financial management; to perfect risk tube control system, achieved risk recognition, and measure, and assessment, and report, and control feedback of closed ring management, improve risk prevention capacity. To further standardize trading, and strive to achieve according to law, standardize and fair. Innovation of performance management, to ensure that potential employees zero fly. To strengthen performance management, process control, enhance employee evaluation and levels of effective communication to improve performance management. To further quantify and refine employee standards . Work, full play party, and branch, and members in five type Enterprise construction in the of core role, and fighting fortress role and pioneer model role; to continues to strengthening four good leadership construction, full play levels cadres in enterprise development in the一、 选择填空题1以下哪个不是Java的原始数据类型( )(A)int (B)boolean (C)float (D)String2.Java程序的执行过程中用到一套JDK工具,其中java.exe是指( ) (A)Java文档生成器(B)Java解释器 (C)Java编译器(D)Java类分解器 3Java程序设计语言采用的16位代码格式是( )。 (A)Unicode (B)ASCII (C)EBCDIC (D)十六进制4.在Java中,属于整数类型变量的是( ) (A)single (B)double (C)byte (D)char 5.下列语句片段 int a=10,b=4,c=20,d=6; System.out.println(a+*b+c*-d); 的结果为( ) (A)144(B)28 (C)140(D)不能执行 6下面无效的标识符为:( )(A)A1234 (B)_two (C)jdk1_3 (D)2_cugii7int m=0,1,2,3,4,5,6,下面哪条语句的结果与数组元素个数相同( ) (A)m.length (B)m.length() (C)m.length+1 (D)m.length()+18编译Java Application 源程序文件将产生相应的字节码文件,这些字节码文件的扩展名为( )。(A) .java(B) .class (C).html(D) .exe9.给出下面代码: public class test static int a = new a10; public static void main(String args) System.out.println(arr10); 那个选项是正确的? ( )(A) 编译时将产生错误;(B) 编译时正确,运行时将产生错误; (C) 输出零; (D) 输出空。 10.在Java中,不属于整数类型变量的是( ) (A)double(B)long (C)int (D)byte 11下面哪些选项是正确的main方法说明? ( )(A) public main(String args) (B)public static void main(String args) (C)private static void main(String args) (D) void main()12int index=1; int foo=new int3; int bar=fooindex; int baz=bar+index;经过以上代码后,baz的值是( )(A)0 (B)1 (C)2 (D)代码不能编译13面向对象技术中的基本概念是( )。(A)类 (B)程序 (C)方法 (D)语法14.JAVA程序经常用到“递归”,“递归”的基本思想是( ) (A)“让别人反复调用自己”(B)“自己反复调用别人” (C)“自己反复调用自己”(D)以上说法都不对 15如果在student类里面的setid()方法带了一个整型参数,给id赋值,并且创建了一个名为scholar的含有20个student对象的数组,则下面哪条语句正确地为第一个scholar赋了一个id号。( )(A)student0.setid(1234) (B)scholar0.setid(1234)(C)student.setid0(1234) (D)scholar.setid0(1234)16.下面是一个递归JAVA程序,其功能为( ) long Factorial(int n) if(1=n) return 1; else return n*Factorial(n-1); (A)求1-n的和(B)求2到n的和 (C)求n的阶乘(D)求2-n的积 17MAX_LENGTH是int型public成员变量, 其值保持为常量100,用简短语句定义这个变量。( ) (A) public int MAX_LENGTH=100; (B) final int MAX_LENGTH=100; (C) final public int MAX_LENGTH=100; (D) public final int MAX_LENGTH=100.18static方法可以( )。(A)访问实例变量 (B)可以使用this关键字 (C)访问实例方法 (D)直接用类名称来调用19欲构造ArrayList类的一个实例,此类继承了List接口,下列哪个方法是正确的 ? ( ) (A) ArrayList myList=new Object(); (B)List myList=new ArrayList(); (C)ArrayList myList=new List(); (D) List myList=new List(); 20.paint()方法使用哪种类型的参数 (A)Graphics (B) Graphics2D (C)String (D) Color21.下列哪个属于容器的构件() (A)JFrame (B)JButton (C)JPnel (D) Japplet22int A=51,28,32,12,34,72,64,19,31;则值为19的元素是( )。 (A)a13 (B)A23 (C)A02 (D)A1223采用继承可以减少错误的原因是( )。(A)新类有权访问更少的数据成员 (B)新类有权访问更少的方法(C)可以复制已经创建的方法 (D)许多所需要的方法已经被使用和测试过24 Java编程所必须的默认引用包为( ) (A)java.sys包(B)java.lang包 (C)java.new包(D)以上都不是 25.下列哪个类声明是正确的() (A)abstract final class H1 (B)abstract private move() (C)protected private number; (D) public abstract class Car 26关于paint方法,以下说法错误的是( )(A)Java自动调用的(B)当窗口从隐藏变成显示时自动执行(C)从缩小图标还原之后自动执行(D)方法没有参数得分评卷人 27当子类的方法与父类方法同名且参数类型及个数都相同时,子类可以( )父类方法。(A)覆盖 (B)过度使用 (C)重载 (D)过度代替28当创建一个子类的对象时,将首先执行( )的构造函数。(A)子类 (B)父类 (C)扩展的类 (D)派生的类29Float与float的区别是( )。(A)float是一个基本类型而Float是一个类(B)float是一个类而Float是一个基本类型(C)都是基本类型 (D)都是类30static方法可以( )。(A)访问实例变量 (B)可以使用this关键字 (C)访问实例方法 (D)直接用类名称来调用31出现在Java程序文件类定义外面的语句包含( )语句。(A)while (B)System (C)package (D)以上都是32当传递数组给方法时,方法接收( )。(A)数组的拷贝 (B)数组中第一个元素的拷贝 (C)数组的地址 (D)无33当子类的方法与父类方法同名且参数类型及个数都相同时,子类可以( )父类方法。(A)覆盖 (B)过度使用 (C)重载 (D)过度代替34.对象使用时,下面描述错误的是( ) (A)通过“.”运算符调用成员变量和方法 (B)通过成员变量的访问权限设定限制自身对这些变量方法的调用 (C)将一个对象申明为类的成员时,必须在使用前为其分配内存 (D)在方法中使用对象作为参数时,采用引用调用 35当创建一个子类的对象时,将首先执行( )的构造函数。(A)子类 (B)父类 (C)扩展的类 (D)派生的类36给出如下代码:class Testprivate int m;public static void fun() / some code.如何使成员变量m 被函数fun()直接访问 ( )(A)将private int m 改为protected int m(B)将private int m 改为 public int m(C)将private int m 改为 static int m(D)将private int m 改为 int m37在接口里,所有的( )。(A)变量必须是公有的 (B)变量必须是私有的(C)方法必须是空的 (D)方法必须是抽象的。38.构造方法何时被调用( ) (A)类定义时(B)创建对象时 (C)调用对象方法时(D)使用对象的变量时39为AB类的一个无形式参数无返回值的方法method1,书写方法头,使得使用基于该类创建的对象名称作为前缀就可以调用它,该方法头的形式为( )。 (A)private void method1( ) (B)public voidmethod1( ) (C) final long method1( )(D) abstractvoid method1( )40.下列哪些语句关于内存回收的说明是正确的 ( )(A) 程序员必须创建一个线程来释放内存; (B) 内存回收程序负责释放无用内存 (C)内存回收程序允许程序员直接释放内存 (D)内存回收程序可以在指定的时间释放内存对象 41语句int m=new int34;为( )个整数保留了存储空间 (A)0 (B)33 (C)34 (D)3542以下有关事件监听器的说法中错误的是( )(A)聆听者必须向产生事件component对象注册 (B)一个聆听者只能接收和处理一个component对象的事件(C)一个聆听者能接收和处理多个component对象的事件(D)一个component对象可以有多个聆听者43.给出下面代码段 1) public class Test 2) int m, n; 3) public Test() 4) public Test(int a) m=a; 5) public static void main(String arg) 6) Test t1,t2; 7) int j,k; 8) j=0; k=0; 9) t1=new Test(); 10) t2=new Test(j,k); 11) 12) 哪行将引起一个编译时错误?( ) (A) line 3(B) line 5 (C) line 6(D) line 10 44子类Doll继承了父类Toy。假定每个类都有一个public void play()方法。下面哪一条语句可以从Doll类中调用属于Toy类的play()方法。( )(A)play( ) (B)this.paly() (C)super.play( ) (D)Doll.play( )45当编写一个Java Applet时,以( )为扩展名将其保存。(A).app (B).html (C).java (D).class46函数重载是指 ( ) (A)两个或两个以上的函数取相同的函数名,但形参的个数或类型不同 (B)两个以上的函数取相同的名字和具有相同的参数个数,但形参的类型可以不同 (C)两个以上的函数名字不同,但形参的个数或类型相同 (D)两个以上的函数取相同的函数名,并且函数的返回类型相同 47.对于下列代码: 1) class Person 2) public void printValue(int i, int j) /. 3) public void printValue(int i)/. 4) 5) public class Teacher extends Person 6) public void printValue() /. 7) public void printValue(int i) /. 8) public static void main(String args) 9) Person t = new Teacher(); 10) t.printValue(10); 11) 第10行语句将调用哪行语句? (A) line 2 (B) line 3 (C) line 6 (D) line 748、下列语句序列执行后,j的值是 int j=2;for( int i=7; i0; i-=2 ) j*=2; (A)15 (B)1 (C)60 (D)3249、下列语句序列执行后,j 的值是 int j=1;for( int i=5; i0; i-=2 ) j*=i; (A)15 (B)1 (C)60 (D)050、以下for循环的执行次数是 for(int x=0;(x=0)&(x4);x+); (A)无限次 (B)一次也不执行 (C)执行4次 (D)执行3次51、若a和b均是整型变量并已正确赋值,正确的switch语句是 (A)switch(a+b); . (B)switch( a+b*3.0 ) . (C)switch a . (D)switch ( a%b ) . 52、若以下变量均已正确定义并赋值,下面符合Java语言语法的语句是 (A)b=a!=7; (B)a=7+b+c=9;(C)i=12.3* %4; (D)a=a+7=c+b;二、判断题1Java的源代码中定义几个类,编译结果就生成几个以.class为后缀的字节码文件。( )2构造函数用于创建类的实例对象,构造函数名应与类名相同,返回类型为void。( )3拥有abstract方法的类是抽象类,但抽象类中可以没有abstract方法。( )4Java的坐标系统是相对于窗口的,以像素为单位,原点位于窗口的左下角。( )5Java语言中类和接口的继承都可以是多重继承。( )6重载是指方法名称相同,根据参数个数的不同,或参数类型的不同来设计不同的功能。( ) 7Java语言中,声明一个数组,数组名是一个变量,系统会分配一块内存给它,用来保存指向数组实体的地址。( )8Java语言中,所有类或接口的父类名称是Frame( )10每个Java Applet均派生自Applet类,但不需加载Applet类,系统会自动加载。( )11Java的数据类型有分为原始数据类型和非原始数据类型。( )12在Java中main()方法可声明成private static且没有返回值,之前要加上void关键字。( )13父类的变量不能访问子类的成员,子类的变量也不能访问父类的成员。( )14在抽象类中不可以定义构造函数。( )15覆盖是指定义多个方法,方法的名称相同,但参数个数不同或参数类型不同。( )16在Java中每个异常都是一个对象,它是异常类或其子类的实例。( )17在Java中,方法的参数传递只有一种形式: 值传递。( )18.if(true)int i=17; System.out.println(i);运行此程序的结果是输出1719、在一个Java源程序文件中,可以有多个public类。()20、Java中数组的元素可以是简单数据类型的量,也可以是某一类的对象。()21、 Java有两类程序:Java Application和Java Applet,其中Java Applet程序由嵌入到浏览器中的解释器解释运行。( T ) 22、Java语言中的数组元素下标总是从0开始,下标可以是整数或整型表达式。( T ) 23、无论Java源程序包含几个类的定义,若该源程序文件以A.java命名,编译后生成的都只有一名为A的字节码文件。 ( F )24.虚拟机是用来解释Java 指令的软件,可以让Java 程序在任何机器上运行.25.continue 的作用是结束正在进行的,直接进入下一次循环.26.在一个类中,静态方法只能调用本类中的其他静态成员(包括变量和成员函数). 27.子类不能定义与父类同名的方法.28、通过String类说明的对象实例在程序运行过程中是不能够更改的;() 29、语句int a=new int34 可以创建一个整型二维数组;() 30、Java的每个子类的构造函数都要显式的调用它的直接父类的构造函数;() 31、在同一个Java源程序文件中只能有一个标识为public的类;() 32、Java语法格式中允许各种数据类型间进行相互转换;() 33、子类覆盖父类中的同名方法时,其访问权限可以是任意的;() 34. ( )Java语言除了应用于网络,还可以用于编写单机的应用程序。35. ( ) Java语言没有自动收集无用内存的功能。36. ( ) Java语言程序与硬件、软件平台有关37. ( )Java语言是解释型语言38. ( ) Java语言支持类的继承,但不支持类的多重继承39. ( )Unicode码与ASCII码不同, Unicode码是16位的,而ASCII码是8位的.39. ( ) 在Java语言中即支持一维数组,也支持多维数组。40. ( )在Java语言中,允许一个类继承一个父类的内容,但不允许继承多个父类的内容41. ( )方法的重载是指子类和父类具有相同的名字、相同的参数表,但返回类型可以不相同。42. ( ) 当一个文件使用完后,必须调用close()方法关闭。43. ( ) 在定义类时,抽象类中的方法必须是空的方法,不能有任何代码. 44. ( )在Java中,add()方法是向容器组件中添加控件的方法。 ( )45、Java源程序文件中是不区分字母的大小写的。( )46、Java applet不能够存取客户机磁盘上的文件。( )47、可以用new来创建一个类的实例,即”对象”。( )48、Java程序对计算机硬件平台的依赖性很低。( )49、Java可以用来进行多媒体及网络编程。( )50、用final修饰的类必须被继承。( )51、类是对象实例。( )52、每个类都只能有一个构造方法。( )53、applet可以运行在浏览器中。三编程题1、 写一个完整的程序使用循环结构计算1+3+5+99的和并输出运算结果。(15分)2、 写出一个Point(点)类,该类具有x,y(表示点的横、纵坐标)两个属性,并定义两个个构造方法,一个无参数,将x,y均设置为0,另一对坐标值为参数,设置x,y为给定坐标值。该类的show方法输出该点的坐标值。(15分)四阅读JAVA程序,写出运行结果。1、public class ko5_2 public static void main(String args) int x=20,y=30; if (x0) if (xy) x - =10; else y + =10; System.out.print(x=+x); System.out.println( y=+y); 请给出运行结果_2、public class ko5_12 public static void main(String args) int t,z=10; t=sum(z); System.out.println(sum=+t); static int sum(int x) if (x=1) return(1); else return(sum(x-1)*x); 请给出运行结果_3、interface ko6_7interface float x=30.5; float y=4.6; float total(); public class ko6_7 implements ko6_7interface float dollar,money; ko6_7(float a,float b) dollar=a;money=b; public float total() return x*dollar+money/y; public static void main(String args) ko6_7 z=new ko6_7(100,4600); System.out.print(美金=+z.dollar); System.out.print(人民币=+z.money); System.out.print(折合台币=+z.total(); 请给出运行结果_4、 class koA static int a; public void display() System.out.print(“ a=”+a); class ko13 public static void main(String args) koA a1=new koA; a1.a=10; koA a2=new koA; a2.a=20; koA.a=50; a1.dispay(); a2.display(); 请给出运行结果_5、class A void callme() System.out.println(“Inside As callme() method”); class B extends A void callme() System.out.println(“Inside Bs callme() method”); public class Dispatch public static void main(String args) A a=new B(); a. callme(); 请给出运行结果_6、public class BubbleSort public static void main(String args) int k,j; int intArray=30,1,-9,70; int le=intArray.length;for( j=0;jle-1;j+) for(k=j+1;kintArrayk) int t=intArrayj; intArrayj=intArrayk; intArrayk=t; for(j=0;jle;j+) System.out.print(intArrayj+” “); 请给出运行结果_门急诊医技楼外脚手架采用悬挑式单排脚手架,基础回填后改为落地式双排脚手架,脚手架搭设高度为23m。病房医技楼外脚手架采用悬挑双排脚手架,分四次悬挑of backbone backbone role; to full strengthening members youth work, full play youth employees in company development in the of force role; to improve independent Commission against corruption work level, strengthening on enterprise business key link of effectiveness monitored. , And maintain stability. To further strengthen publicity and education, improve the overall legal system. We must strengthen safety management, establish and improve the education, supervision, and evaluation as one of the traffic safety management mechanism. To conscientiously sum up the Olympic security controls, promoting integrated management to a higher level, higher standards, a higher level of development. Employees, today is lunar calendar on December 24, the ox Bell is about to ring, at this time of year, we clearly feel the pulse of the XX power generation company to flourish, to more clearly hear XX power generation companies mature and symmetry breathing. Recalling past one another across a railing, we are enthusiastic and full of confidence. Future development opportunities, we more exciting fight more spirited. Employees, let us together across 2013 full of challenges and opportunities, to create a green, low-cost operation, full of humane care of a world-class power generation company and work hard! The occasion of the Spring Festival, my sincere wish that you and the families of the staff in the new year, good health, happy, happy五填空、请将程序(或部分程序)填写完整。(20分,每小题2分)1运行HelloApp .java Applet小程序的网页如下。 2、对圆进行数据抽象,并建立类。class point / 定义点类point int x0; int y0; point(int x,int y) /构造方法 this.x0=x; this.y0=y; class circle / 定义圆类circle point center; int radius; _(point p1,int r1) /构造方法 this.center=p1; this.radius=r1; double area() / 定义园面积 return Math.PI*radius*radius; 3、建立抽象类figure,并进一步建立矩形类。 public abstract class figure public abstract float area(); public abstract float circumference(); public class rectangle _ figure public float d; public rectangle( ) d=11.4; public float area( ) return d*d; public float circumference( ) return 2*d; 4、封装可以限定类中的成员只被该类本身访问:package p1;public class ori/ 要求限定类中的成员只被该类本身访问_ int n_p=2; void Access()System.out.println(“n_p=”+n_p);5、 String类对象的访问。 Class accessStringPublic static void main(String args)String s=”Lets learn java from the very beginning .See how to access a String!”;System.out.println(“The length of String is=”+s.length();System.out.println(“char at the specified index 6 is=”+_);System.out.println(“The first occurrence of a is=”+s.indexOf(a); / System.out.println 6、字符串转化成简单数据类型。public class StringToO
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 2025年验船师考试(C级船舶检验专业实务)冲刺模拟试题及答案一
- 北京市门头沟区2023-2024学年九年级下学期中考第二次模拟考试化学试题及答案
- 2025年心理咨询师进阶指南中级心理咨询面试题集及解析
- 栽树知识技能培训总结课件
- 2025年计算机二级考试全真模拟题及答案解析
- 2025年旅游管理专业知识测试卷及解析
- 公务员企业面试题及答案
- 校长防汛培训知识讲座课件
- 2025年初级美容美发师实操技能测试卷
- 2025年乡村特色产业发展规划与设计面试模拟题及答案解析
- 14S501-1 球墨铸铁单层井盖及踏步施工
- 高级职称评定工作总结(3篇)
- 物料来料检验规范标准
- 干部人事档案管理业务知识培训课件
- 辅警考试题库
- 广东省惠州市《综合知识和能力素质》公务员考试真题含答案
- GB/T 9797-2022金属及其他无机覆盖层镍、镍+铬、铜+镍和铜+镍+铬电镀层
- GB/T 33365-2016钢筋混凝土用钢筋焊接网试验方法
- GB/T 19289-2019电工钢带(片)的电阻率、密度和叠装系数的测量方法
- GB/T 12750-2006半导体器件集成电路第11部分:半导体集成电路分规范(不包括混合电路)
- 《中国特色社会主义政治经济学(第二版)》第一章导论
评论
0/150
提交评论