switch (i) { default: 310-025 Leading the way in IT testing and certification tools,www.testking.com - 27 - System.out.printIn(“Hello”); } What are the two acceptable types for the variable i? ()
相似题目
-
switch (i) { default: System.out.printIn(“Hello”); } What is the acceptable type for the variable i?()
-
11. public static void main(String[] args) { 12. Integer i = uew Integer(1) + new Integer(2); 13. switch(i) { 14. case 3: System.out.println(”three”); break; 15. default: System.out.println(”other”); break; 16. } 17. } What is the result?()
-
int I=1, j=0 switch(i) { case 2: j+=6; case 4: j+=1; default: j +=2; case 0: j +=4; } What is the value of j at line 16?()
-
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?()
-
int i = 1,j = -1; switch (i) { case 0, 1:j = 1; case 2: j = 2; default; j = 0; } System.out.println(“j=”+j); What is the result?()
-
switch (i) { default: System.out.printIn(“Hello”); ) What are the two acceptable types for the variable i?()
-
switch (i) { default: System.out.printIn(“Hello”); } What is the acceptable type for the variable i?()
-
public class Test { public static void main(String Args[]) { int i =1, j = 0; switch(i) { case 2: j +=6; case 4: j +=1; default: j +=2; case 0: j +=4; } System.out.println(“j =” +j); } } What is the result? ()
-
1. int I=1, j=0 2. 3. switch(i) { 4. case 2: 5. j+=6; 6. 7. case 4: 8. j+=1; 9. 10. default: 11. j +=2; 12. 13. case 0: 14. j +=4; 15. } 16. What is the value of j at line 16?()
-
以下程序的输出结果是( ). main( ) { int i; for(i=0;i<3;i++) switch(i) { case 0: printf(\%d\,i); case 2: printf(\%d\,i); default: printf(\%d\,i); } }
-
05510013:有以下程序:int main( ){char i;for (; (i=getchar ())!='\\n';){switch (i-'a'){case 0: putchar (i);case 1: putchar (i+1); break;case 2: putchar (i+2);case 3: break;default:putchar (i); break;}}printf (\\\n\);}输入abcde后,程序的输出结果是( )。
-
若int i=10; 执行下列程序后,变量i的正确结果是( )。switch ( i ){case 9:i+=1;case10:i+=1;case11:i+=1;default : i+=1; }
-
读程序写结果:#include void main(){ int i=8;switch (i){ case 9:i=i+1;default:i=i+1;case 10:i=i+1;case 11:i=i+1;}cout<
-
以下程序的运行结果是inti;for(i = 0; i < 3; i++){switch (i){case 0: printf(\%d\, i);case 2: printf(\%d\, i);default: printf(\%d\, i);}}
-
下列程序的输出结果是()。include<stdio.h>main(){int a=0,i;for(i=1;i<5;i++){Switch(i){case 0:case 3:a+=1;case 1:case 2:a+=2;default:a+=3;}}printf("%d",a) :}
-
intI=1,j=0switch(i){case2:j+=6;case4:j+=1;default:j+=2;case0:j+=4;}Whatisthevalueofjatline16?()
-
有以下程序 include <stdio.h> void main() { int i; for(i=0;i<3;i++) { switch(i) case 1: printf("%3d",i); 2: default: } 程序运行后的输出结果是()>
-
6、若int i=10;执行下面程序段后,变量i的值是()。 switch (i) { case 9: i+=1 ; case 10: i+=1 ; case 11: i+=1 ; default: i+=1 ; }
-
以下程序的输出结果是()main(){int a = 0,I;for(i = 1;i<5;i++;){switch(i){case 0:case 3:a+=2;case 1:case 2:a+=3;default:a+=5;}}printf(“%d\n,a”);}
-
include <stdio.h>void main(){int b,i;b=0;for(i=1;i<5;i++){switch(i){case 0:case 3:b+=2;case 1:case 2:b+=3;default:b+=5;}}printf(""%d\n"",b);}以上程序执行后,输出b的值是
-
以下程序的输出结果是().main(){ int a,i;a=0;for(i=1;i<5;i++){ switch(i){ case 0:case 3:a+=2;case 1:case 2:a+=3;default:a+=5;}}printf("%d/n",a);}
-
7、执行下列程序段后,变量i的值是()。 int i=10; switch(i) { case 9:i+=1; case 10:i+=1; case 11:i+=1; default:i+=1; }
-
运行下面的程序,其输出是()。include <stdio.h>main(){ int a=0,i; for(i=0;i<4;i++) { switch(i) { case 0: case 1: a+=1; case 2: a+=2; break; default: a+=5; } } printf("%d\n",a);}
-
"(专基)以下程序执行结果()include <stdio.h>main(){int i ;for (i = 1; i <=5; i++){switch (i%5 ){case 0: printf (""*"" ); break;case 1: printf (""""); break;default :case 2: printf (""&""); break; }}}
推荐题目
- 预算单位零余额账户
- 皮下接种注射的疫苗是:()
- 某船排水量为22025t,重心高度为7.84m,现卸载重量为673t的货物,其重心距基线高9.6m,则该轮初稳性高度改变()m。
- 经精度评定,洪水预报方案精度达到()者,可用于发布正式预报。
- 跨期所得税分摊法
- 从市场营销的实践看,当市场有足够的购买者,且对商品的需求缺乏弹性时,企业往往能成功地实施撇脂定价。
- 患者,女,66岁,无牙颌,上下牙槽嵴吸收严重,伴严重下颌前突,下颌弓明显大于上颌弓。排列后牙时下列哪一项是不正确的?()
- 《煤矿安全规程》规定,电机车架空线的悬挂高度,在不行人的巷道内为()。
- 《中国共产党纪律处分条例》所称____,是指涉嫌违纪的党员在组织初核前向有关组织交代自己的问题,或者在初核和立案调查其问题期间交代组织未掌握的问题。
- 党小组长由推举产生()