A. **0**
B. **1**
C. **2**
D. 0
第1题:
下列语句序列执行后,输出结果是() int a = 0 while (a < 5 ) { switch(a){ case 0: case 3 : a = a + 2; case 1 : case 2 : a = a + 3; default : a = a + 5; } } System.out.print (a );
A.0
B.5
C.10
D.20
第2题:
下列输出结果是() int a = 0 ; while (a < 5 ) { switch(a){ case 0: case 3 : a = a + 2; case 1 : case 2 : a = a + 3; default : a = a + 5; } } System.out.print (a ) ;
A.0
B.5
C.10
D.其他
第3题:
下列程序的输出结果是 for(int i=0;i<5;i++){ switch(i){ case 0:System.out.print("B"); case 1:System.out.print("e");break; case 2:System.out.print("g"); case 3:System.out.print("!");break; case 4:System.out.print("!");break; default:System.out.print("!"); } }
A.Beg!!!
B.Beeg!
C.Beg!
D.Beeg!!!
第4题:
1、下列输出结果是() int a=0; while(a< 5 ) { switch(a){ case 0: case 3 : a = a + 2; case 1 : case 2 : a = a + 3; default : a = a + 5; } } System.out.print (a) ;
A.0
B.5
C.10
D.其他
第5题:
下列程序段的输出结果是()。 int a=0; while(a<5){ switch(a){ case 0: case 3:a=a+2; case 1: case 2:a=a+3; default:a=a+5; } } System.out.print(a);
A.0
B.5
C.10
D.其他