【单选题】【消耗次数:1】
已知整型变量k的值为3,下面程序段执行的结果是)switchk){case1:putchar‘A’);break;case2:putchar‘B’);break;case3:putchar‘C’);case4:putchar‘D’);default:putchar‘E’);}
CDE
C
ABC
ABCD
参考答案:
复制
纠错
➡️如需代学继续教育,联系微信:yizhituziang

相关题目
【单选题】 有以下程序:main(){intc;while((c=getchar())!=\n){switch(c-2){case0:case1:putchar(c+4);case2:putchar(c+4);break;case3:putchar(c+3);default:putchar(c+2);break;}}printf("\n");}当输入:247回车,程序的输出结果是()。
①  689
②  6689
③  66778
④  66887
【单选题】 有以下程序: main( ) { int c; while((c=getchar( ) ) != \n ) { switch(c- 2 ) { case 0 : case 1 : putchar(c+4) ; case 2 : putchar(c+4) ; break; case 3 : putchar(c+3) ; default: putchar(c+2) ; break; } } printf(\n } 当输入: 247, 程序的输出结果是()。
①  689
②  6689
③  66778
④  66887
【单选题】 以下程序段的运行结果是()。ints=15;switch(s/4){default:printf("Over");case1:printf("One");break;case2:printf("Two");}
①  Two
②  OverTwo
③  OverOne
④  One
【单选题】 以下程序段的运行结果是()。 int s=15; switch(s/4) {default: printf(Over ) ; case 1: printf(One ) ; break; case 2: printf(Two ) ; }
①  Two
②  Over Two
③  Over One
④  One
【单选题】 有如下程序:main(){  intx=1,a=0,b=0;  switch(x){  case0:b++;case1:a++;case2:a++;b++;}  printf(“a=%d,b=%d\n”,a,b);}该程序的输出结果是()
①  a=2 b=1
②  a=1 b=1
③  a=1 b=0
④  a=2 b=2
【单选题】 有以下程序,程序运行以后的输出结果是() #include stdio.h main( ) { int a[ ]={2,3,5,4},i; for(i=0;i switch(i%2) { case 0:switch(a[i]%2) {case 0:a[i]++;break; case 1:a[i]--; }break; case 1:a[i]=0; } for(i=0;i printf(\n); }
①  3 3 4 4
②  2 0 5 0
③  3 0 4 0
④  0 3 0 4
【单选题】 以下程序的运行结果是()。voidmain(){intn=9;switch(n--){default:printf("%d",n++);case8:case7:printf("%d",n);break;case6:printf("%d",n++);case5:printf("%d",n);}}
①  8
②  7
③  89
④  87
【单选题】 下述程序的运行结果( )。 #includevoid main() { int x=1,a=0,b=0; switch(x) { case 0:b++; case 1:a++; case 2:a++;b++; } printf(a=%d,b=%d\n,a,b); } case 1:a++; case 2:a++;b++; } printf(a=%d,b=%d\n,a,b); }
①  a=1,b=1
②  a=2 ,b=1
③  a=2,b=2
④  a=3,b=3
【单选题】 若int i=10; 执行下列程序后,变量i的正确结果是( ) switch ( i ) { case 9: i+=1; case 10: i+=1; case 11: i+=1; default : i+=1; }
①  13
②  12
③  11
④  10
【单选题】 下述程序的运行结果( )。 #includevoid main() { int x=1,a=0,b=0; switch(x) { case 0:b++; case 1:a++; case 2:a++;b++; } printf(a=%d,b=%d\n,a,b); }
①  a=2,b=1
②  a=1,b=2
③  a=0,b=1
④  a=1,b=0
随机题目
【单选题】 某人血样与抗B标准血清凝集,不与抗A标准血清凝集,其血型为
①  A型
②  B型
③  AB型
【单选题】 肾上腺素有以下哪种效应
①  促进心脏收缩
②  促进胃肠道收缩
③  促进泌尿
【单选题】 生理性止血后期血凝块回缩是因为
①  红细胞叠连
②  血小板收缩蛋白回缩
③  纤维蛋白收缩
【单选题】 下列哪一项是在体试验
①  坐骨神经-腓肠肌标本制备
②  “假饲”
③  蛙心脏灌注
【单选题】 形成第一心音的因素有以下哪一项
①  房室瓣关闭
②  房室瓣开放
③  动脉瓣关闭
【判断题】 神经纤维只要结构完整就可以传导动作电位。
①  正确
②  错误
【判断题】 唾液淀粉酶分解淀粉为麦芽糖是物理性消化
①  正确
②  错误
【判断题】 咀嚼是在咀嚼肌和舌肌等配合下进行的机械性消化
①  正确
②  错误
【判断题】 肺活量是作最大吸气后,再尽力呼气所能呼出的气量
①  正确
②  错误
【判断题】 发情周期是前一次发情到下一次排卵的时期。
①  正确
②  错误