执行下列代码:int[]x=new int[5];后,下面说明正确的是()。
A.x[4]为0
B.x[4]未定义
C.x[5]为0
D.x[0]为空
A.x[4]为0
B.x[4]未定义
C.x[5]为0
D.x[0]为空
第3题
A. 0<=k<100之间的随机数
B. 10<=k<100之间的随机数
C. 10<=k<=100之间的随机数
D. 0<=k<=100之间的随机数
第4题
B.X x=new X(); new Thread(x).run()
C.X x=new X(); new Thread(x).start()
D.Threat=new Thread(x).run()
第5题
A.有错误,数组的大小没有定义
B.有错误,数组anar在初始化以前不能正常输出
C.2
D.1
第6题
A.x=5,7
B.x=5,3
C.x=3,7
D.x=3,5
第7题
1)public class Test
2)int m,n;
3)public Test()
4)public Test(int a)m=a;
5)public static void main(String args[])
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.第6行
B.第5行
C.第3行
D.第10行
第8题
A.aceg
B.abcdefg
C.abcd
D.ACEG
第9题
class BaseClass
{
public int i;
}
class MyClass:BaseClass
{
public new int i;
}
则下列语句在Console 上的输出为_______.
MyClass y = new MyClass();
BaseClass x = y;
x.i = 100;
Console.WriteLine("{0}, {1}",x.i,y.i);
A.0,0
B.100,100
C.0,100
D.100,0
第10题
A.y x1;
B.x x1=x();
C.static x x1;
D.public x x1=new x(int 123);