Java技能测试试卷一
第一部分:基础部分
计算机基础部分
选择题 (每题2分,共60分)
1.下列关于栈的叙述正确的是:
A.栈是非线性结构
B.栈是一种树状结构
C.栈具有先进先出的特征
D.栈具有后进先出的特征
2.结构化程序设计所规定的三种基本控制结构是:
A.输入、处理、输出
B.树形、网形、环形
C.顺序、选择、循环
D.主程序、子程序、函数
3.结构化程序设计的一种基本方法是:
A.筛选法
B.递归法
C.归纳法
D.逐步求精法
4.如果对一个关系实施了一种关系运算后得到了一个新的关系,而且新的关系中属性个数少于原来关系中属性个数,这说明所实施的运算关系是:
A.选择
B.投影
C.连接
D.并
5.下列叙述中正确的是:
A.显示器和打印机都是输出设备
B.显示器只能显示字符
C.通常的彩色显示器都有7种颜色
D.打印机只能打印字符和表格
6.微型计算机中运算器的主要功能是进行:
A.算术运算
B.逻辑运算
C.算术和逻辑运算
D.初等函数运算
7.COMMAND.COM是DOS系统的最外层模块,通常称之为:
A.引导程序
B.输入输出系统
C.命令处理系统
D.文件管理系统
8、电子邮件是:
A.网络信息检索服务
B.通过Web网页发布的公告信息
C.通过网络实时交互的信息传递方式
D.一种利用网络交换信息的非交互式服务
9.与十进制数255相等的二进制数是:
A.11101110
B.11111110
C.10000000
D.11111111
10.下列叙述中正确的是:
A.指令由操作数和操作码两部分组成
B.常用参数xxMB表示计算机的速度
C.计算机的一个字长总是等于两个字节
D.计算机语言是完成某一任务的指令集
11.计算机的内存储器比外存储器:
A.价格便宜
B.存储容量大
C.读写速度快
D.读写速度慢
12.字长为32位的计算机是指:
A.该计算机中的CPU有32个寄存器
B.该计算机能够处理的最大数不超过232
C.该计算机每秒钟所能执行的指令条数为32MIPS
D.该计算机中的CPU可以同时处理32位的二进制数
13.在微机系统中,对输入输出设备进行管理的基本程序模块(BIOS)存放在:
A.RAM中
B.ROM中
C.硬盘中
D.寄存器中
14.微机显示器一般有两组引线,它们是:
A.电源线与信号线
B.电源线与控制线
C.电源线与地线
D.控制线与地线
15.486PC机主板上一般带有高速缓冲存储器Cache,它是()之间的缓存。
A.CPU与辅助存储器
B.CPU与主存储器
C.软盘与内存
D.硬盘与内存
16.目前因特网(Internet)尚未提供的服务是:
A.电子邮件
B.文件传送
C.远程使用计算机
D.电视广播
17.IEEE 802.3的物理层协议10 BASE-T规定从网卡到集线器的最大距离为:
A.100m
B.185m
C.360m
D.500m
18.表示“在使用x之前,先使x的值加1”的正确方式是:
A.++x
B.x++
C.+x
D.+x+
19.若有定义:int a=8,b=5,c;,执行语句c=a/b+0.4;后,c的值为:
A.1.4
B.1
C.2.0
D.2
20.以下程序的输出结果是:
main()
{int a=5,b=4,c=6,d;
printf(″%d\n″,d=a>b? (a>c? a:c):(b));
}
A.5
B.4
C.6
D.不确定
21.在下列字符序列中,不可用做C语言标识符的是:
A.student_num
B.class
C.#88
D.month_12
22.下列用于printf函数的控制字符常量中,代表“横向跳格”的字符常量是:
A.\b
B.\t
C.\r
D.\f
23.设x的值为5,则表达式(++x)+(++x)+(++x)的值是:
A.24
B.20
C.15
D.25
24.下列叙述中,正确的一条是:
A.语句“goto 12;”是合法的
B.for(;;)语句相当于while(1)语句
C.if(表达式)语句中,表达式的类型只限于逻辑表达式
D.break语句可用于程序的任何地方,以终止程序的执行
25.下列语句执行后的结果是:
y=5;p=&y;x=*p++;
A.x=5,y=5
B.x=5,y=6
C.x=6,y=5
D.x=6,y=6
26.下述程序段的输出结果是:
int x=10;
int y=x++;
printf(″%d,%d″,(x++,y),y++);
A.11,10
B.11,11
C.10,10
D.10,11
27.如果文件1包含文件2,文件2中要用到文件3的内容,而文件3中要用到文件4的内容,则可在文件1中用三个#include命令分别包含文件2、文件3和文件4。在下列关于这几个文件包含顺序的叙述中,正确的一条是:
A.文件4应出现在文件3之前,文件3应出现在文件2之前
B.文件2应出现在文件3之前,文件3应出现在文件4之前
C.文件3应出现在文件2之前,文件2应出现在文件4之前
D.出现的先后顺序可以任意
28.在下列叙述中,正确的一条是:
A.语句“int *pt;”中的*pt是指针变量名
B.语句“int *p=a;”等价于“int *p;p=&a[0];”
C.运算符*和&都是取变量地址的运算符
D.已知指针变量p指向变量a,则a和*p值相同,都是变量a的值
29.在下列叙述中,错误的一条是:
A.scanf()函数可以用来输入任何类型的多个数据
B.数组名作函数参数时,也采用“值传送”方式
C.如果形参发生改变,不会改变主调函数的实参值
D.函数的实参与形参的类型应一致
30.在下列叙述中,错误的一条是:
A.关系表达式的值是一个逻辑值,即“真”或“假”,可赋给一个逻辑变量
B.数组必须先定义,后使用,并且只能逐个引用数组元素,而不能一次引用整个数组
C.在C语言中,判断一个量是否为“真”时,用0代表“假”,1代表“真”
D.将字符串常量赋给字符数组时,必须在字符串后加′{checkhtml}′,表示字符结束
填空题(每空1分,共10分)
1.对于输入为N个数进行快速排序算法的平均时间复杂度是(O(Nlog2N))
2.在面向对象方法学中,直接反映了用户对目标系统的要求的模型是(功能模型)
3.软件测试方法中,黑盒测试个白盒测试法是常用的方法,其中黑盒测试法主要是用于测试(软件外部功能)
4.关系型数据库管理系统中存储与管理数据的基本形式是(二维表)
5.数据库管理系统常见的数据模型有层次、网状和(关系)三种。
6.软磁盘最外边的磁道数是(0)号磁道。
7.能把计算机处理好的结果转换成为文本、图形、图像或声音等形式并输送出来的设备称为(输出)设备。
8.计算机中网络通信协议IP是(网际协议)。
9.十进制数53转换为十六进制数为(35)。
10.买来一张新盘后,在存入文件前,必须进行(格式化(或初始化、FORMAT))处理。
Java语言程序设计
选择题 (每题1分, 共10分)
1.Java语言具有许多优点和特点,下列选项中,哪个反映了Java程序并行机制的特点?
A.安全性
B.多线性
C.跨平台
D.可移植
2.下列哪个类声明是正确的?
A.abstract final class HI{···}
B.abstract private move(){···}
C.protected private number;
D.public abstract class Car{···}
3.下列关于for循环和while循环的说法中哪个是正确的?
A.while循环能实现的操作,for循环也都能实现
B.while循环判断条件一般是程序结果,for循环判断条件一般是非程序结果
C.两种循环任何时候都可替换
D.两种循环结构中都必须有循环体,循环体不能为空
4.异常包含下列那些内容?
A.程序中的语法错误
B.程序的编译错误
C.程序执行过程中遇到的事先没有预料到的情况
D.程序事先定义好的可能出现的意外情况
5.Character流与Byte流的区别是
A.每次读入的字节数不同
B.前者带有缓冲,后者没有
C.前者是块读写,后者是字节读写
D.二者没有区别,可以互换使用
6.监听事件和处理事件
A.都由Listener完成
B.都由相应事件Listener处登记过的构件完成
C.由Listener和构件分别完成
D.由Listener和窗口分别完成
7.Applet可以做下列那些操作?
A.读取客户端文件
B.在客户端主机上创建新文件
C.在客户端装载程序库
D.读取客户端部分系统变量
8.下列哪个属于容器的构件?
A.JFrame
B.JButton
C.JPnel
D.JApplet
9.如果希望所有的控件在界面上均匀排列,应使用下列那种布局管理器?
A.BoxLayout
B.GridLayout
C.BorderLayout
D.FlowLouLayout
10.为实现多线程之间的通信,需要使用下列那种流才合适?
A.Filter stream
B.File stream
C.Random access stream
D.Pipde stream
智力测试(10分)
1、 九个点,如何使四条连续直线连接起来。
2、 有两根不均匀分布的香,香烧完的时间是一个小时,你能用什么方法来确定一段15分钟的时间?
翻译题(10分)
A servlet is a JavaTM technology-based Web component, managed by a container, that generates dynamic content. Like other Java technology-based components, servlets are platform-independent Java classes that are compiled to platform-neutral byte code that can be loaded dynamically into and run by a Java technology-enabled Web server. Containers, sometimes called servlet engines, are Web server extensions that provide servlet functionality. Servlets interact with Web clients via a request/response paradigm implemented by the servlet container.
第二部分:高级部分
(只考虑实习或就业的学员必须测试此部分内容)
时间:150分钟 考试成绩___________
选择题 (每题2分,共30分)
1. Given the following declaration String s = "Example"; Which are legal code?
A. s >>> = 3;
B. s[3] = "x";
C. int i = s.length();
D. String t = "For " + s;
E. s = s + 10;
2. Which statements are true about listeners?
A. The return value from a listener is of boolean type.
B. Most components allow multiple listeners to be added.
C. A copy of the original event is passed into a listener method.
D. If multiple listeners are added to a single component, they all must
all be friends to each other.
E. If the multiple listeners are added to a single component, the order in which listeners are called is guaranteed.
3. Given the following incomplete method.
1. public void method(){
2.
3. if (someTestFails()){
4.
5. }
6.
7.}
You want to make this method throw an IOException if, and only if, the
method someTestFails() returns a value of true.
Which changes achieve this?
A. Add at line 2: IOException e;
B. Add at line 4: throw e;
C. Add at line 4: throw new IOException();
D. Add at line 6: throw new IOException();
E. Modify the method declaration to indicate that an object of [type]
Exception might be thrown.
4. Why would a responsible Java programmer want to use a nested class?
A. To keep the code for a very specialized class in close association
with the class it works with.
B. To support a new user interface that generates custom events.
C. To impress the boss with his/her knowledge of Java by using nested
classes all over the place.
5. What should you use to position a Button within an application
frame so that the width of the Button is affected by the Frame size but
the height is not affected.
A. FlowLayout
B. GridLayout
C. Center area of a BorderLayout
D. East or West of a BorderLayout
E. North or South of a BorderLayout
6. What might cause the current thread to stop executing?
A. An InterruptedException is thrown
B. The thread executes a sleep() call
C. The thread constructs a new Thread
D. A thread of higher priority becomes ready (runnable)
E. The thread executes a read() call on an InputStream
7. Consider the following code:
String s = null;
Which code fragments cause an object of type NullPointerException to be
thrown?
A. if((s!=null) & (s.length()>0))
B. if((s!=null) &&(s.length()>0))
C. if((s==null) | (s.length()==0))
D. if((s==null) || (s.length()==0))
8. Given the following method body:
{
if (sometest()) {
unsafe();
}
else {
safe();
}
}
The method "unsafe" might throw an IOException (which is not a subclass
of RunTimeException). Which correctly completes the method of
declaration when added at line one?
A. public void methodName() throws Exception
B. public void methodname()
C. public void methodName() throw IOException
D. public void methodName() throws IOException
E. public IOException methodName()
9.
class s extends Thread{
int j=0;
public void run() {
try{Thread.sleep(5000);}
catch(Exception e){}
j=100;
}
public static void main(String args[])
{
s t1=new s();
t1.start();
try{
Thread.yield();
}
catch(E){
}
System.out.println(t1.j);
}
}
what you have to do to ensure that 'j' will print 100
A.you have make t1 as Daemon Thread
B.You have join the t1 to main
C.You have to suspend the main when the thread starts and resume it after
the value of 'j' is set to 100
D.You have to interrupt the main thread
10. class s implements Runnable{
int x=0,y=0;
int addX(){x++; return x;}
int addY(){y++; return y;}
public void run()
{
for(int i=0;i<10;i++)
System.out.println(addX()+""+addY());
}
public static void main(String args[])
{
s run=new s();
Thread t1=new Thread(run);
Thread t2=new Thread(run);
t1.start();
t2.start();
}
}
//Compile time Error There is no start method
A.Will print in this order 11 22 33……
B.Will print but not exactly in an order (eg: 123124 3……)
C.Will print in this order 12 3……123……
D.Will print in this order 123……?.
11. class Outer{
}
How will you create an instance of Inner Class out side? Select 2
A.Inner a= new Inner();
B.Outer o= new Outer();Inner a= new o.Inner();
C.Outer o= new Outer();Outer.Inner a= new o.Inner();
D.Outer.Inner a= new Outer().new Inner();
12. What a static inner class can access select one
A. Any variables in the enclosing scope
B. Final variables in the enclosing scope
C. Static variables declared in side the method
D. Static variables declared in side the outer class
13. What is true about inner class? Select one
A.an Inner class can access all variables in the any enclosing scope
B.an Inner class can access all variables in the enclosing scope
C.an inner class can be declared as private
D.an Anonymous inner class can be extended from class and can implement
an interface
14. _____is a class/interface that is a collection which cannot contain any
duplicate elements which maintains its elements in ascending order.
A.SortedSet
B.Set
C.Sorted Map
D.Collection
E.TreeSet
15. What is true about Map select one
A.A map will order the elements in an order according the key
B.A map will use unique key to store value
C.A map will use unique key to identify value inside the map
16. What is the return-type of the getSource of ActionEvent?
A. boolean
B. Boolean
C. void
D. ID of the event
E. Object
17. import java.util.Stack;
public class aClass
{
public static void main(String []agrs)
{
Stack st1 = new Stack();
Stack st2 = new Stack();
new aClass().Method(st1, st2);
System.out.println("st1 has: " + st1);
System.out.println("st2 has: " + st2);
}
private void Method(Stack st1,Stack st2)
{
st2.push(new Integer(100));
st1 = st2;
}
}
A. print
st1 has: []
st2 has: [100]
B. error in st1 = st2
C. error in ("st1 has: " + st1)
D. print
st1 has: [100]
st2 has: [100]
18. class Super
{
int i=0;
Super(String s)
{
i=10;
}
}
class Sub extends Super
{
Sub(String s)
{
//super();
super(s);
i=20;
}
public static void main(String args[])
{
Sub b=new Sub("hello");
System.out.println(b.i);
}
What will be the value of i.?
A. Compilation Error
B. Runtime Error
C. 0
D. 10
E. 20
19. public static void main(String args[])
{ try{
System.out.println("1");
/////AA
}
catch (RuntimeException x){
System.out.println("2");
return;
}
catch(Exception x){
System.out.println("3");
return;
}
finally{
System.out.println("4");
}
System.out.println("5");
}
if there is no Exception in the try block what will be the output?
Select all that apply?
A. 1
B. 2
C. 3
D. 4
E. 5
20. public static void main(String args[])
{
int a=10;
int b=20;
if(a=b)
System.out.println("Not Equal");
else
System.out.println("Equal");
}
What will be the output?
A. Equal
B. Not Equal
C. Compilation Error
D. An Exception will occurs
21. Which of the following will give correct declaration statement for float select 3
A. float f= 1.0;
B. float f= 3.222e+1;
C. float f= -1;
D. float f= 1;
E. float f=1.0f
22. code:
1.interface foo
2. {
3. int I=0;
4. }
5. class sreejith implements foo
6. {
7.public static void main(String args[])
8.{sreejith s =new sreejith();
9. int j=0;
10.j=s.I;
11.j=sreejith.I;
12. j=foo.I;
13. s.I=2;
}
}
Where will compilation Fail?
A.10
B. 11
C.12
D.13
E. No error
23. What will be the return type of the (short)10/10.2*2;
A. short
B. int
C. double
D. float
E. Compilation Error
24. public static void main(String a[])
{
StringBuffer s=new StringBuffer("Java");
String c=new String("Java");
Hello(s,c);
System.out.println(s+c);
}
public static Hello(StringBuffer s, String c)
{
s.append("C");
c.repalce('A','D')
}
Write the Output?__________
25. What is the output when following code is run ?
1. class ForLoop{
2. public static void main(String args[]){
3. int i=0,j=5;
4. st: for(;;i++){
5. for(;;j--){
6. if(i>j)
7. break st;
8. }
9. }
10. System.out.println("i="+i+" j="+j);
11. }
12. }
A. i=0 j=-1
B. i=1 j=0
C. i=0 j=1
D. i=1 j=-1
E. Compiler error at line 4.
26. What is the output when folllowing code is run?
1. class OuterOne{
2. class InnerOne extends OuterOne{}
3. static void thisMethod(){
4. Object o=(Object)new OuterOne();
5. OuterOne foo=(OuterOne)o;
6. }
7. public static void main(String args[]){
8. thisMethod();
9. }
10. }
A. Will compile fine,but at runtime a ClassCastException is thrown
B. Will compile and run fine
C. Compiler error at line 4
D. Compiler error at line 5
27. What is the value of j when printed?
class Foo{
public static void main(String args[]){
int x=4,j=0;
switch(x){
case 1:j++;
case 2:j++;
case 3:j++;
case 4:j++;
case 5:j++;
break;
default:j++;
}
System.out.println(j);
}
}
A. 1
B. Compiler error
C. 6
D. 3
E. 2
28. import java.io.*;
class Excep{
static void method() throws Exception{
throw new EOFException();
}
public static void main(String args[]){
try{
method();
}catch(////){}
}
}
Which of the following should be placed at //// so that the code will
compile without errors?
A. IOException e
B. EOFException e
C. MalformedURLException e
D. NullPointerException e
E. Exception e
F. FileNotFoundException
29. Which will return an int value very nearer to and not greater than the given double value?
A. int a=(int)Math.max(double)
B. int a=(int)Math.min(double)
C. int a=(int)Math.ceil(double)
D. int a=(int)Math.floor(double)
E. int a=(int)Math.round(double)
30. What is true about constructors ? (Select two)
A. They initialize all the member variables
B. They initialize all the instance variables
C. If there is no constructor , the compiler includes default
constructor.
D. Compiler supplied constructor will invoke the default constructor
of the super class.
简答题:(每题10分,共20分)
1. ArrayList和Vector的区别,HashMap和Hashtable的区别?
就ArrayList与Vector主要从二方面来说.
一.同步性:Vector是线程安全的,也就是说是同步的,而ArrayList是线程序不安全的,不是同步的
二.数据增长:当需要增长时,Vector默认增长为原来一培,而ArrayList却是原来的一半
就HashMap与HashTable主要从三方面来说。
一.历史原因:Hashtable是基于陈旧的Dictionary类的,HashMap是Java 1.2引进的Map接口的一个实现
二.同步性:Hashtable是线程安全的,也就是说是同步的,而HashMap是线程序不安全的,不是同步的
三.值:只有HashMap可以让你将空值作为一个表的条目的key或value
2. EJB与JAVA BEAN的区别?
Java Bean 是可复用的组件,对Java Bean并没有严格的规范,理论上讲,任何一个Java类都可以是一个Bean。但通常情况下,由于Java Bean是被容器所创建(如Tomcat)的,所以Java Bean应具有一个无参的构造器,另外,通常Java Bean还要实现Serializable接口用于实现Bean的持久性。Java Bean实际上相当于微软COM模型中的本地进程内COM组件,它是不能被跨进程访问的。Enterprise Java Bean相当于DCOM,即分布式组件。它是基于Java的远程方法调用(RMI)技术的,所以EJB可以被远程访问
(跨进程、跨计算机)。但EJB必须被布署在诸如Webspere、WebLogic这样的容器中,EJB客户从不直接访问真正的EJB组件,而是通过其容器访问。EJB容器是EJB组件的代理,EJB组件由容器所创建和管理。客户通过容器来访问真正的EJB组件。
智力题:(每题5分,共10分)
1、5个海盗抢到了100颗宝石,每一颗都一样大,真是价值连城。他们决定这样分:抽签决定自己的号码(1、2、3、4、5),首先,由1号提出分配方案,然后大家(5人)进行表决,而且只有半数或超过半数的人同意时,按照他的提案进行分配,否则他将被扔进大海喂鲨鱼。如果1号死后,再由2号提出分配方案,然后大家(4人)进行表决,而且只有半数或超过半数的人同意时,按照他的提案进行分配,否则他将被扔入大海喂鲨鱼。依此类推……条件:每个海盗都是很聪明的人,都能很理智地判断得失,从而做出选择。问题:第一个海盗提出怎样的分配方案才能够使自己的收益最大化?
解析:先说4、5号。如果仅仅剩下这两个人。4号肯定选“100;0”这个提案,因为即使5号不同意,按照规则,4号自己同意自己的提案,也算达到半数(原话是:而且只有半数或超过半数同意时,通过提案)。这样,5号看似被动,其实非常主动,因为他可以冷眼旁观前三个人的提案,根据是否对自己有利的原则来选择是否同意。也就是说,5号肯定不会等到4号来表决,他必须支持前三个提案中给自己最多的一个提案,因为到了4号提案的时候,他肯定什么也得不到了。
可以推导到3号。如果3号选择给自己99个,4号0个,5号1个,那么5号就不得不同意了,因为这样他至少能得到一个,比最后由4号提案,他什么都得不到强。也就是说,轮到3号提案时,他肯定提交“99;0;1”这个提案。
可见,如果轮到3号选择,4号肯定什么都得不到了。这一点4号是很清楚的。他要在前二个提案里,选择一个让自己获益最多的提案。这时,焦点就集中到了2号身上。2号只要在3、4、5号中赢得一个支持者,就足够获得最终胜利。
2号的提案可以有两种“98;0;1;l”和“98;0;2;0”。显然,前一个提案,是关照到了4、5两者,但是把握稍微低一些。毕竟,5号在3号那里也可以得到这么多钻石。4号则没得选择,他必须同意2号的提案,否则3号提案时,他什么也分不到。后一个提案就是针对4号进行的彻底拉拢,重拳出击,虽然4号没的选择,但如果给予他意外的惊喜,他会更加支持2号提案的。这个把握是百分之一百的。其实2号的两种提案,几乎没有差别。
不难看出,3号在2号的两种提案里,都不会有好处,那么也就是说,只要在前一个提案里,3号能得到好处,他就会支持,绝对不会让2号有提案权。于是,在1号的提案里,要顾及3号的利益,而2号的利益绝对可以忽略,因为无论如何,2号都不会同意1号的分配方案(当然,除非1号分配2号99个钻石,这是不可能通过的)。
现在,3号只要能获得1个或1个以上的钻石,就可以支持提案,4号只要获得2个或2个以上的钻石,就可以支持提案,5号只要获得1个或1个以上的钻石,就可以支持提案。在这种情况下,如果3、4号都同意,提案不需要5号同意照样可以通过。
于是,l号兼顾自己利益最大化和确保提案通过的分配方法就产生了:
1号97个;2号0个;3号1个;4号2个;5号0个。
2、你让工人为你工作7天,给工人的回报是一根金条。金条平分成相连的7段,你必须在每天结束时给他们一段金条,如果只许你两次把金条弄断,你如何给你的工人付费?
两次弄断就应分成三份,我把金条分成1/7、2/7和4/7三份。这样,第1天我就可以给他1/7;第2天我给他2/7,让他找回我1/7;第3天我就再给他1/7,加上原先的2/7就是3/7;第4天我给他那块4/7,让他找回那两块1/7和2/7的金条;第5天,再给他1/7;第6天和第2天一样;第7天给他找回的那个1/7
翻译题:(共10分)
Hibernate is a powerful, high performance object/relational persistence and query service. Hibernate lets you develop persistent classes following object-oriented idiom - including association, inheritance, polymorphism, composition, and collections. Hibernate allows you to express queries in its own portable SQL extension (HQL), as well as in native SQL, or with an object-oriented Criteria and Example API.
Unlike many other persistence solutions, Hibernate does not hide the power of SQL from you and guarantees that your investment in relational technology and knowledge is as valid as always. The LGPL open source license allows the use of Hibernate and NHibernate in open source and commercial projects.
第一部分:基础部分
公共基础知识
选择题:
1-5: D C D B A
6-10: C C D D A
11-15: C D B A B
16-20: D A A B C
21-25: C B A B A
26-30: A A D D B
Java知识
选择题:
1-5 :B D D C C
6-10:B A A B D
智力题
1、
2、 一只两头点,一只一头点,当第一只烧完后,开始计时且把第二只剩下的一头点燃,烧完就是15分。
第二部分:高级部分
选择题
1.CDE.
2.BC.
3.CE
4.AB
5.E
6.ABDE
Non-runnable states:
* Suspended: caused by suspend(), waits for resume()
* Sleeping: caused by sleep(), waits for timeout
* Blocked: caused by various I/O calls or by failing to get a monitor's
lock, waits for I/O or for the monitor's lock
* Waiting: caused by wait(), waits for notify() or notifyAll()
* Dead: Caused by stop() or returning from run(), no way out
7.AC.
8.AD
9.B
10.C
11.CD
12.D
13.C
14.A
15.C
16.E
17.A
18.A
19.ade
20.C
21.cde
22.D
23.C
24.JavaCJava
25.A
26.B
27.E
28.E
29.D
30.CD
本试卷包含计算机基础和Java语言程序设计两大部分,旨在全面考察考生的计算机基础知识和Java编程能力。涉及选择题、填空题、简答题等多种题型。
1544

被折叠的 条评论
为什么被折叠?



