Hifix
Hyperfix
Trisponder
WGS84
第1题:
下面程序的运行结果是( )。 public class Test { public static void main (String args[]) { int c=5; System. out. println (C); System. out. println (c++); System. out. println (C); } }
A.5 6 6
B.5 5 6
C.6 7 7
D.6 6 6
第2题:
A、typical
B、fundamental
C、characteristic
D、pointless
第3题:
此题为判断题(对,错)。
第4题:
已知如下代码: switch(m) { case 0: System. out. println("Condition 0 "); case 1: System. out. println("Condition 1 "); case 2: System. out. println("Condition 2 "); case 3: System. out. println("Condition 3 "); break; default: System. out. println("Other Condition"); 当m的值为( )时,可以输出“Condition 2”。
A.2
B.0,1
C.0,1,2
D.0,1,2,3
第5题:
请将下面程序补充完整。
public class PowerCalc{
public static void main(String[]args){
double x=5.0;
System. out. println(x+"to the power 4 is"+power(x, 4));
System. out. println("7. 5 to the power 5 is"+power(7.5, 5));
System. out. println("7.5 to the power 0 is"+power(7.5, 0));
System. out. println("10 to the power -2 is"+power(10, -2));
}
static double【 】 (double x, int n){
if(n>1)
return x * power(x, n-1);
else if(n<0)
return 1.0/power(x, -n);
else
return n==0 ? 1.0:x;
}
}
第6题:
A.you can hope
B.you did hope
C.can you hope
第7题:
假设变量sum=0和j=80都是int类型,则下列语句中的正确的是( ).
A.if (true) System. out. println("true"); else;
B.if (5<>1) System. out. println( "not equal" );
C.for (iht j=20;j<<50;j--) System. out. println (j);
D.while (j>>=50) sum +=j; j--;
第8题:
●Windows XP is Microsoft's most advanced desktop (70) system.
(70) A.operating
B.programming
C.security
D.service
第9题:
假设有String a = "A"; char b ='A'; int c=65,下面选项中正确的是( )。
A.if(a == b) {System. out. print("Equal") }
B.if(c == b) {System. out. print("Equal") }
C.if(a == c) {System. out. print ("Equal") }
D.if(c = b) {System. out. print("Equal") }
第10题:
当执行下面代码时,会输出( )。 Boolean b1 = new Boolean(true); Boolean b2 = new Boolean(true); if (b1 == b2) if (bi.equals(b2)) System. out.printin ("a"); else System. out. println ("b"); else if (bi.equals(b2)) System. out.println ("c"); else System. out.printIn("d");
A.a
B.b
C.c
D.d