【单选题】【消耗次数: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
随机题目
【多选题】 导语写作的基本要求包括?
①  要突出新闻精华
②  要具体实在,力戒空泛
③  要简练,忌冗长
④  要新颖多样,忌千篇一律
【多选题】 关于新闻特写的发展历程,下列选项表述正确的有?
①  五四运动前后,借鉴文学作品写法的“文艺通讯”见诸报章
②  上世纪30年代,前苏联的“特写”、德国的“报告文学”传入我国
③  上世纪50年代,开始了对“特写”的规范化工作
④  1963年,“新闻特写”与“文艺特写”彻底分开
【多选题】 专访的文体特征包括?
①  采访对象的显著性与权威性
②  采访话题的专一性和深入性
③  谈话内容的纪实性
④  记录谈话情境和谈话背景
【多选题】 动态消息的特点包括?
①  事件性新闻
②  注重时效,以最新变动为着眼点
③  内容单一,篇幅简短
④  价值蕴含在联系中
【多选题】 消息的组成部分包括?
①  消息标题
②  消息头
③  消息导语
④  消息主体
【多选题】 新闻跳笔这种笔法的特点是?
①  直入主题,展示要点
②  直接组合
③  多段落和短段落
④  段与段之间的跳跃性
【多选题】 倒金字塔结构的特点是?
①  “重要性递增”原则
②  “重要性递减”原则
③  一般采用直叙式导语
④  “断裂行文”
【多选题】 与消息相比,通讯报道新闻事实更加?
①  概括
②  完整
③  详细
④  深入
【多选题】 消息标题制作中要求“概括准确”,具体包括?
①  突出精华
②  题文一致
③  避免歧义
④  态度鲜明
【单选题】 哪一项指把诸多有同一性的事实组织在一起进行报道的消息形式?
①  动态消息
②  综合消息
③  经验消息
④  人物消息