【单选题】【消耗次数:1】
以下程序的输出结果是(  )。#include stdio.h void main( ){ int a,b;for(a=1,b=1;aa++){ if (b=10) break;if (b%5==1) { b+=5; continue; } }printf(%d\n }
101
6
4
3
参考答案:
复制
纠错
相关题目
【简答题】 以下程序的输出结果是[填空1]。#include stdio.h void main( ){ int a,b;for(a=1,b=1;aa++){ if (b=10) break;if (b%5==1) { b+=5; continue; } }printf(%d\n }
【单选题】 以下程序运行后,a的值是()。main(){inta,b;for(a=1,b=1;aa++){if(b=20)break;if(b%3==1){b+=3;continue;}b-=5;}}
①  101
②  100
③  8
④  7
【单选题】 下列程序执行后的输出结果是________. #include stdio.h void main( ) { int a=5,b=60,c; if (ab) {c=a*b;printf(%d*%d=%d\n,b,a,c);} else {c=b/a;printf(%d/%d=%d\n,b,a,c);} }
①  60/5=12
②  300
③  60*5=300
④  12
【单选题】 下列程序执行后的输出结果是_______.#include stdio.h void main( ) { int a=5,b=60,c; if (ab) {c=a*b; printf(%d*%d=%d\n,b,a,c);} else {c=b/a; printf(%d/%d=%d\n,b,a,c);} }
①  60/5=12
②  300
③  60*5=300
④  12
【单选题】 有以下程序#includestdio.hmain(){ int a=1,b=0;if(--a) else if(a==0) b+=2;else b+=3;printf(“%d\n”,b); }程序运行后的输出结果是(  )。
①  0
②  1
③  2
④  3
【单选题】 有以下程序#includestdio.hmain(){ int a=1,b=0;if(--a) else if(a==0) b+=2;else b+=3;printf(“%d\n”,b); }程序运行后的输出结果是。
①  0
②  1
③  2
④  3
【单选题】 以下程序的输出结果是() int a, b; void fun( ) { a=100; b=200; } main( ) { int a=100, b=100; fun( ); printf(%d%d \n, a,b); }
①  100200
②  100100
③  200100
④  200200
【单选题】 下述程序的运行结果( )。 #includevoid main() { int a=4,b=3,c=5,t=0; if(aa=b;b=t; if(aa=c;c=t; printf(%d,%d,%d\n,a,b,c); }
①  5,0,3
②  4,5,6
③  5,1,3
④  3,4,6
【单选题】 下述程序的运行结果( )。 #includevoid main() { int a=4,b=3,c=5,t=0; if(aa=b;b=t; if(aa=c;c=t; printf(%d,%d,%d\n,a,b,c); }
①  5,1,3
②  4,5,6
③  5,0,3
④  3,4,7
【单选题】 下列程序执行后的输出结果是 #includevoid main( ) { int a=5,b=60,c; if (ab) {c=a*b;printf(%d*%d=%d\n,b,a,c);} else {c=b/a;printf(%d/%d=%d\n,b,a,c);} }
①  60/5=12
②  300
③  60*5=300
④  12
随机题目
【判断题】 答题说明:句子没有语法错误请选择“正确”,有语法错误请选择“错误”Donald Robbins begin jogging a few year ago because he felt he was too fat.
①  正确
②  错误
【判断题】 答题说明:句子没有语法错误请选择“正确”,有语法错误请选择“错误”Some childrens programs are educational and give useful and helpful information.
①  正确
②  错误
【判断题】 阅读课文II. Television and Children,判断下列句子表述内容的正误:The negative influence of television can be avoided.
①  正确
②  错误
【多选题】 A: Good afternoon, madam.___________ ?B: I hope so. Id like to have a pair of shoes to match my new red dress.
①  Can I help you
②  May I help you
③  Is there anything that I can do for you
④  How are you
【单选题】 These exercises_________ tomorrow.
①  should be finished
②  may finish
③  will finish
④  are finished
【单选题】 A: Can you_________ your school in English?B: Yes, of course.
①  destroy
②  describe
③  divide
④  delay
【单选题】 As we know, the most important_________ of television companies is profit.
①  interest
②  interests
③  interesting
④  interested
【单选题】 The postage rate was high in the past, because post offices had to send many people to_________ the postage.
①  cover
②  carry
③  clean
④  collect
【判断题】 若A,B皆为n阶方阵,则行列式 |AB|=|A||B|
①  正确
②  错误
【判断题】 四对事件<img class=jc-formula data-tex=\left\{ A,B \right\} ,\left\{ \bar { A } ,B \right\} ,\left\{ A,\bar { B } \right\} ,\left\{ \bar { A } ,\bar { B } \right\} src=https://huaweicloudobs.ahjxjy.cn/09AB2E5D303C7574090E3958A0C4BB91.png style=vertical-align: middle;/>,有一对独立,则其他对也独立。
①  正确
②  错误