【单选题】【消耗次数:1】
以下程序段的运行结果是()。 int s=15; switch(s/4) {default: printf(Over ) ; case 1: printf(One ) ; break; case 2: printf(Two ) ; }
Two
Over Two
Over One
One
参考答案:
复制
纠错
相关题目
【单选题】 以下程序段的运行结果是()。ints=15;switch(s/4){default:printf("Over");case1:printf("One");break;case2:printf("Two");}
①  Two
②  OverTwo
③  OverOne
④  One
【单选题】 以下程序的运行结果是()。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
【单选题】 下列程序执行后的输出结果是() void func1(a) { switch(a) { case 1:printf(good); case 2:printf(nice); default:printf(end); } } main( ) { int i=2; func1(i); printf(\n); }
①  nice
②  end
③  good
④  niceend
【单选题】 有以下程序,程序运行以后的输出结果是() #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
【单选题】 有以下程序: 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
【单选题】 下述程序的运行结果( )。 #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
【单选题】 有以下程序: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
【单选题】 下述程序的运行结果( )。 #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
【单选题】 运行以下程序,从键盘上输入china# #includevoid main() { int v1=0,v2=0; char ch; while((ch=getchar())!=#) switch(ch) { case a: case h: default: v1++; case 0:v2++; } printf(%d,%d\n,v1,v2); } 运行结果( )。
①  2,2
②  3,3
③  4,4
④  5,5
【单选题】 #define X a+b main( ) { int a=3,b=4,s1; s1=2*X; printf(%d\n,s1); },以上程序的运行结果是( )?
①  8
②  14
③  10
④  6
随机题目
【单选题】 采用老年人便标本常用于()。
①  以上都是
②  常规体检
③  肠道寄生虫检查
④  检查有无消化道系统感染、出血
【单选题】 采尿时需要准备哪些物品()。
①  碘酊
②  便盆
③  以上都是
④  棉签
【单选题】 以下说法正确的是( )。
①  存储器是指计算机系统中具有记忆能力的部件,用来存放程序和数据
②  控制器主要负责加减乘除运算和逻辑判断
③  运算器是整个计算机的指挥中心
④  电脑中的中央处理器主要是由运算器和存储器构成
【单选题】 护理员将双手环抱老年人的()协助老年人坐起。
①  前两者都对
②  肩部
③  腰部
④  腋下
【单选题】 两侧拐杖同时伸向前方,身体重心移向前方。用拐杖支撑,悬空身体,借助人体重力,两腿向前甩动约() cm,不能向前甩动过远,否则会失去重心、跌倒。
①  40
②  20
③  30
④  50
【单选题】 高渗盐水,一般为()浓度盐水,多用于肉芽水肿创面,能消退水肿,但可引起伤口疼痛。
①  10%
②  9%
③  12%
④  15%
【单选题】 在微机上用全拼方式输入“中国”二字时,应键入“zhongguo”8个字符。那么,“中国”这两个汉字的内码所占用的字节数是( )。
①  2
②  8
③  16
④  4
【单选题】 下列各项中,不属于工资管理模块日常处理的工作是( )。
①  工资计算
②  设置工资项目计算公式
③  个人所得税计算
④  工资分摊
【单选题】 胸部X线透视可以早期发现有无肺部疾病,如肺癌、肺结核等。不吸烟者不需要定期检查
① 
② 
【单选题】 老年人孤独的主要表现()。
①  自我评价过低
②  生存意识消极
③  以上都是
④  经常对他人不满及抱怨