下面程序的输出结果是()。public class Example{public static void main(String[ ] args){int x = 0;if(x > 0) x = 1;switch(x){case 1: System.out.println(1);case 0: System.out.println(0);case 2: System.out.println(2);break;case 3: System.out.println(3);default: System.out.println(4); break;}}}
A. 02
B. 43
C. 23
D. 10
下列代码的输出结果是()。int x=3,y=5,k=0;switch(x%y+3) {case 0:k=x*y;break;case 6:k=x/y;break;case 8:k=x-y;break;case 12:k=y-x;break;}System.out.println(k);
A. 12
B. 0
C. 15
D. -2
以下选项中,switch语句判断条件可以接收的数据类型有哪些?()
A. int
B. byte
C. char
D. short
E. long
F. Enum
G. String
下面的二维数组初始化语句中,正确的是____
A. float b[2][2]={0.1,0.2,0.3,0.4};
B. int a[][]={{1,2},{3,4;
C. int a[2][]= {{1,2},{3,4;
D. float a[2][2]={0};