需要报名参加2014年全国计算机等级考试的同学需注意了,下个月就要报名了,具体时间是18日,请大家不要错过报名时间,小编需要提醒的是在报名时一定要避开高峰期,以免造成网络瘫痪等问题,最后在登陆确认是否报名成功,2014年上半年(第39次)全国计算机等级考试将于2014年3月29日—31日举行,网上报名将于2014年2月18日开始。
30.下列关于线程和进程的说法正确的是( )。
A.进程结构的所有成分都在用户空间内
B.用户程序能够直接访问进程涉及的数据
C.线程是内核级的实体
D.线程结构驻留在用户空间中
31.下列选项成员变量声明正确的是( )。
A.public protected final int i;
B.abstract class Fl{…}
C.private double height;
D.double weight()
32.下面程序段的输出结果是( )。
class Test{
public s,tatic void main(String args[]){
MyThread t=new MyThread();
t.displayOutput("t has been createD");
t.start();
}
}
Class MyThread extends Thread{
public void displayOutput(String s){
System.out.println(s);
}
public void run(){
displayOutput("t is running.");
}
}
A.t has been created.
B.t has been created. t is running.
C.t is running.
D.编译出错
33.执行下列程序时,会产生什么异常( )。
public class Test{
public static void main(String args[]){
int d=101;
int b=220:
long a=321;
System.OUt.println((a-b)/(a-b-d));
}
}
A.ArraylndexOutOfBoundsException
B.NumberFormatException
C.ArithmeticException
D.EOFExeeption
34.下面程序段的输出结果为( )。
public class Test
{
public static void main(String args[])
{
booleana,b,C;
a=(3<5):
b=(a= =true);
System.out.println("a="+a+"b="+b);
c=(b= =false);
System.out.println("b="+b+"c="+c);
}
}
A.a=true b=false B.fl=true b=false
b=true c=true b=true c=false
C.a=true b=true D.a=false b=false
b=true c=false b=true c=false
35.下面程序段的输出结果是( )。
public class Test{
public static void main(String args[]){
int a,b;
for(a=1,b=1;a<=100;a++){
if(b>=10)break;
if(b%2= =1){
b+=2:
continue;
}
}
System.OUt.println(a);
}
}
A.5 B.6
C.7 D.101
36.栈中允许进行插入和删除的一端称为( )。
A.栈顶 B.栈底
C.栈端 D.栈尾
37.下面程序段的输出结果是( )。
public class Test{
public static void main(String args[]){
int i=1:
switch(i){
case0:
System.OUt.println("0");
break;
casel:
System.out.println("1");
case2:
System.OUt.println("2");
break;
default:
System.out.println("default");
}
}
}
A.01
B.12
C.10
D.21
38.Frame默认的布局管理器是( )。
A.FlowLayout
B.BorderLayout
C.GridLayout
D.UpLayout
39.在Java语言中,ObjectOutputStream是指( )。
A.字节流
B.字符流
C.对象输出流
D.数据流
在计算机培训栏目中还有计算机等级考试培训 一级和三级的考试辅导资料,想获得更多的资料,请点击唯学网计算机培训栏目,祝考生能顺利通过考试。