【单选题】【消耗次数:1】
下列程序执行后的输出结果是() 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
参考答案:
复制
纠错
相关题目
【单选题】 以下程序段的运行结果是()。 int s=15; switch(s/4) {default: printf(Over ) ; case 1: printf(One ) ; break; case 2: printf(Two ) ; }
①  Two
②  Over Two
③  Over One
④  One
【单选题】 有以下程序,程序运行以后的输出结果是() #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
【单选题】 以下程序段的运行结果是()。ints=15;switch(s/4){default:printf("Over");case1:printf("One");break;case2:printf("Two");}
①  Two
②  OverTwo
③  OverOne
④  One
【单选题】 下述程序的运行结果( )。 #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
【单选题】 下面程序的输出结果是()。 #include int num=10; func( ) {int num=4; return ++num; } void main( ) { printf(%d\n, func( ) ) ; }
①  4
②  5
③  10
④  11
【单选题】 以下程序的运行结果是()。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
【简答题】 以下程序的运行结果是[填空1]。#include stdio.hvoid main(){int i,j;for (i=4;ii--){printf(*for (j=1;jj++)printf(*printf(\n}}
【简答题】 以下程序的运行结果是[填空1]。#include stdio.hvoid main(){int i,j;for (i=4;ii--){printf(*for (j=1;jj++)printf(*} printf(\n}
【简答题】 以下程序的运行结果是[填空1]。#include stdio.hvoid main(){int i,j;for (i=4;ii--){printf(*for (j=1;jj++)printf(*printf(\n}}
【单选题】 下述程序的运行结果( )。 #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
随机题目
【单选题】 倾听时容易出现的错误是( )。
①  过分重视求助者的问题
②  迟迟不下结论
③  不好意思打断求助者的叙述
④  做出道德和正确性的评价
【单选题】 自我开放的主要形式是( )。
①  开诚布公地袒露自己
②  自觉、主动地公开个人生活
③  自我剖析、自我批判
④  暴露与求助者所谈内容有关的个人经验
【单选题】 在团体辅导过程中,带领者不应扮演( )的角色。
①  团体内部的观察者
②  团体成员的知心朋友
③  团体发展的控制者
④  团体的支持者
【单选题】 关于倾听技术,不正确的做法是( )。
①  设身处地地听
②  适当地表示理解
③  适当地给予价值评价
④  通过言语或非言语做出反应
【单选题】 中小学生最为突出的问题是( )。
①  学习困难
②  恐学症
③  厌学
④  学习焦虑
【单选题】 下列关于咨询中保持中立性态度的意义的陈述中,正确的是( )。
①  有助于建立亲密的咨询关系
②  可以保证咨询师不把个人情绪带入咨询中
③  有助于咨询师保持自身尊严
④  避免求助者过分依赖咨询师
【单选题】 关于心理健康教育与品德教育的不同点,以下说法错误的是( )。
①  心理健康教育的目标是人格的健全与完善,而品德教育的目标在于培养道德高尚的人。
②  心理健康教育的工作方法是引导,而品德教育的工作方法主要是教育
③  心理健康教育针对学生心理层面,而品德教育针对的是思想道德素质
④  心理健康教育以培养心理健康的人为终极目标,而品德教育的终极目标则是培养德才兼备的人才
【单选题】 关于婴幼儿关节和韧带的特点及保育的说法不正确的是
①  婴幼儿肘关节较松
②  勿用力牵拉孩子的手臂,以防伤着肘关节
③  脚底的肌肉、韧带较结实
④  为促进脚弓的形成应进行适度的运动
【简答题】 举例说明总体、样本、参数、统计量这几个概念及他们之间的区别和联系。
【简答题】 收集的属于不同时间上的数据称为[填空]数据。