Three students _____ in this university come from the South.
A. of ten
B. out of in ten
C. out of ten
D. in tens
第1题:
public static void main(String[]args){Integer i=new Integer(1)+new Integer(2);switch(i){case3:System.out.println("three");break;default:System.out.println("other");break;}}Whatistheresult?()
A.three
B.other
C.Anexceptionisthrownatruntime.
D.Compilationfailsbecauseofanerroronline12.
E.Compilationfailsbecauseofanerroronline13.
F.Compilationfailsbecauseofanerroronline15.
第2题:
11.publicstaticvoidmain(String[]args){12.Integeri=uewInteger(1)+newInteger(2);13.switch(i){14.case3:System.out.println(”three”);break;15.default:System.out.println(”other”);break;16.}17.}Whatistheresult?()
A.three
B.other
C.Anexceptionisthrownatruntime.
D.Compilationfailsbecauseofanerroronline12.
E.Compilationfailsbecauseofanerroronline13.
F.Compilationfailsbecauseofanerroronline15.
第3题:
以下程序段的输出结果为( )。 int j=2 switch (j){ Case 2: system.out.print("two."): Case 2+1: System.out.println("three."); break: default: System.out.println (“value is”+j): Break }A.B.two
A.two.three.
B.two
C.three
D.value is 2
第4题:
现有:importjava.util.*;classAddStuff2{publicstaticvoidmain(String[]args){TreeSett=newTreeSet();if(t.add("one"))if(t.add("two"))if(t.add("three"))add("four");for(Strings:t)System.out.print(s);}}结果为:()
A.one
B.onethreetwo
C.onetwothree
D.onetwothreefour
E.fouronethreetwo
F.编译失败
第5题:
Despite the wonderful acting and well-developed plot the _________ movie could not hold our attention.
A) three-hours B) three-hour
C) three-hours’ D) three-hour’s
选B
用破折号连接的作形容词不用复数.
第6题:
执行下列Java语句:int x = 1; switch (x+1 ) { case 1: System.out.print("One" ); case 2: System.out.print("Two" ); case 3: System.out.print("Three" ); default: System.out.print("Error" ); } 显示器上将显示()。
A.One
B.Two
C.TwoThree
D.TwoThreeError