1.  考虑以下声明:    
a = 10;    
b = 11;    
c = a|b;    
以下哪个值是 c 的正确值?  
(A) 1 
(B) 111 
(C) 11 
(D) 10 
  
2.  以下哪种方法可以使用 super 关键字? 
(A) main 方法  (B) class 方法    (C) instance 方法    (D) constructor 
  
3.  以下哪句话对于 finally 块是不正确的?    
(A) 它应只在 try-catch 块的所有 catch 块的后面                                                  
(B) 当捕获异常时,虽然可能不执行所有 catch 块,但总是执行 finally 块 
(C) 如果 try 块中的代码不抛掷任何异常,则不执行 finally 块 
(D) 即使有 return 语句,也会执行 finally 块 
  
4.  以下哪个组件可用于编辑多行文本? 
(A) TextArea  (B) TextField    (C) ScrollPane    (D) List 
  
5.  以下哪个类是 Applet 类的超类? 
(A) Panel  (B) Frame    (C) Canvas    (D) Window 
  
6.  以下哪个方法用于检查类对象是表示类还是接口?  
(A) checkInterface 方法  (B) isInterface 方法    (C) ifInterface 方法    (D) equalsInterface 方法 
  
7.  当发出一个COMMIT语句时会发生什么? 
(A) 所有在上一个COMMIT语句之后所做的操作长存于数据库中                                          
(B) 当该COMMIT语句发出时那个特定的事务执行的数据操作在数据库长存 
(C) 当该COMMIT语句发出时已成功的数据操作被撤销 
(D) 以上皆非  
  
8.  在开发内嵌SQL程序时以下的哪些Jave包是必需的? 
(A) sqlj.runtime.ref  (B) sqlj.runtime    (C) 以上皆是    (D) 以上皆非 
  
9.  请指出将& psi; 作为实体引用的字符。 (A) Ω竆~  (B) Φ    (C) Ψ    (D) Ξ 
  
10.  navigator.appCode 的返回值是什么? 
(A) 浏览器的名称  (B) 平台名称    (C) 浏览器的代码名称    (D) 将不返回任何值 
  
11.  在 DOM 层次结构中,哪一个对象的层次水平高于 Sumbit 对象? 
(A) Window  (B) Document    (C) Navigator    (D) Form 
  
12.  指出不创建新变量,而是赋一个临时值给一个现有全局变量的关键字。 
(A) local  (B) my    (C) @param    (D) %ENV 
  
13.  当 IIS 服务终止时,哪一个子例程将被触发? 
(A) Application_OnStart  (B) Application_OnEnd    (C) Session_OnStart    (D) Session_OnEnd 
  
14.  以下哪一项表述是正确的? 
(A) 子类不能重定义超类的行为  (B) 子类只可以继承一个超类    (C) 子类只可以继承超类的行为    (D) 子类也可以称为派生类 
  
15.  类 Car 继承 Vehicle。Vehicle 有一个名为 vehicleNumber 的属性。如果要使子类 Car 具有对超类的 vehicleNumber 属性的可见性,您将为类 vehicle 中的 VehicleName 提供哪种可见性? 
(A) 包  (B) 公有的    (C) 私有的    (D) 受保护的 
  
16.  以下哪一项是用例中的一个场景? 
(A) 一个用例的集合  (B) 一个用例的实例    (C) 从一个场景派生出的某个用例    (D) 伴随用例实现的一组状态改变 
  
17.  状态图用来建模什么? (I)  一个系统的有序事件行为      (II)  反馈对象      (III) 前摄对象      (IV) 只有一个系统中的顺序行为 
(A) (I) 和 (III) 都是  (B) (I) 和 (II) 都是    (C) (III) 和 (IV) 都是    (D) 只有 (III) 
  
18.  以下程序的输出是什么?    
class SampleThread3 extends Thread{    
  public SampleThread3(String str){    
  super(str);    
  }    
  public void run(){    
  for(int j=0;j <3;j++){    
    System.out.println(getName()+" "+j);    
    try{    
    sleep((int)(Math.random()*2000));    
    }    
    catch(InterruptedException e){ }    
  }    
  System.out.println("The Thread got over:"+getName());    
  }    
}    
public class SampleThread4{    
  public static void main(String[] args){    
  new SampleThread3("US").start();    
  new SampleThread3("UK").start();    
  }    

(A) US0    
UK0    
US1    
US2    
UK1    
UK2    
Thread 跳过:US    
Thread 跳过:UK 
(B) US0 
UK0 
US1 
UK1 
US2 
UK2 
Thread 跳过:US 
Thread 跳过:UK 
(C) US0 
UK0 
UK1 
UK2 
US1 
Thread 跳过:UK 
US2 
Thread 跳过:US 
(D) 每次执行该程序都得到随机的输出 
  
19.  以下程序的输出是什么?    
class SampleThread1 implements Runnable{    
Thread t;    
public SampleThread1(){    
  t = new Thread(this, "SampleThread1");    
  t.start();    
}    
public void run(){    
  try{    
  for(int j=3;j>=0;j--){    
    System.out.println("SampleThread1: "+j);    
    Thread.sleep(1000);    
  }    
  } catch(InterruptedException e) { }    
  System.out.println("Exiting SampleThread1?");    
}    
}    
class SampleThread2{    
  public static void main(String args[]){    
  new SampleThread1();    
  try{    
    for(int j=3;j>=0;j--){    
    System.out.println("SampleThread2: "+ j);    
    Thread.sleep(3000);    
    }    
  } catch(InterruptedException e){ }    
  System.out.println("Exiting SampleThread2?");    
  }    

(A) SampleThread2: 3 
SampleThread1: 3 
SampleThread1: 2 
SampleThread1: 1 
SampleThread2: 2 
SampleThread1: 0 
Exiting SampleThread1… 
SampleThread2: 1 
SampleThread2: 0 
Exiting SampleThread2… 
(B) 每次执行该程序都得到随机的输出      
(C) 生成编译时错误 
(D) 生成运行时错误 
20.触发器在建立之后可以分别用SUSPEND TRIGGER和RESTART TRIGGER语句来挂起和继续它的执行。 
(A)对    (B) 错