【单选题】【消耗次数:1】
执行下面程序段后,输出字符B的个数是(   )x=0;while(x=5){printf("B");x+=2;}
0个
3个
5个
6个
参考答案:
复制
纠错
相关题目
【单选题】 写出下面程序的执行结果。main(){ int x=1,y=1,z=0;if(z0)if(y0) x=3;else x=5;printf(%d\tif(z=y0) x=3;else if(y= =0 ) x=5;else x=7;printf(%d\tprintf(%d\t}
①  1 5 1
②  1 7 0
③  3 7 0
④  5 5 0
【单选题】 写出下面程序的执行结果。main(){ int x=1,y=1,z=0;if(z0)if(y0) x=3;else x=5;printf(%d\tif(z=y0) x=3;else if(y= =0 ) x=5;else x=7;printf(%d\tprintf(%d\t
①  1 7 0
②  3 7 0
③  5 5 0
④  1 5 1
【单选题】 写出下面程序的执行结果。main(){ int x=1,y=1,z=0;if(z0)if(y0) x=3;else x=5;printf(%d\tif(z=y0) x=3;else if(y= =0 ) x=5;else x=7;printf(%d\tprintf(%d\t}
①  1 5 1
②  3 7 0
③  5 5 0
④  1 7 0
【单选题】 写出下面程序的执行结果。main(){ int x=1,y=1,z=0;if(z0)if(y0) x=3;else x=5;printf(%d\tif(z=y0) x=3;else if(y= =0 ) x=5;else x=7;printf(%d\tprintf(%d\t}
①  1 7 0
②  3 7 0
③  5 5 0
④  1 5 1
【单选题】 1. 对下面程序段描述正确的是int x=0,s=0; while (x!=0) s=s+x+1;printf(%d
①  运行程序段后输出0
②  运行程序段后输出1
③  程序段中的控制表达式是非法的
④  程序段循环无数次
【判断题】 x0=-5,y0=5是3x+6y=15的一个解.
①  正确
②  错误
【单选题】 当a=1,b=3,c=5,d=4,执行完下面一段程序后x的值是:ifa<b)ifc<d)x=1;elseifa<c)ifb<d)x=2;elsex=3;elsex=6;elsex=7
①  18
②  2
③  3
④  6
【单选题】 以下程序段运行后x的值为()。inta[8]={1,2,3,4,5,6,7,8},i,x=0;for(i=0;ii++,i++)x=x+a[i];
①  36
②  16
③  20
④  18
【单选题】 以下程序段运行后,x[1]的值为()。intx[5]={5,4,3,2,1};x[1]=x[3]+x[2+2]-x[3-1];
①  6
②  0
③  1
④  5
【单选题】 执行下面程序后,运行结果是 #includevoid main( ) { int x=41,y=1; if (x%3==0 x%7==0) { y+=x;printf(y=%d\n} else {y=x;printf(y=%d} }
①  y=41
②  y=43
③  y=42
④  y=1
随机题目
【简答题】 Translate the following sentence into English.无论刮风还是下雨,他都坚持早起在附近的公园跑步。
【简答题】 Translate the following sentence into English.他们终于想出了一个好主意来解决这个问题。
【简答题】 Direction: Fill in the blanks with the words given below. Change the form if necessary.[integrity; conscience; yield; appoint; assure; ensure; demonstrate; clarify; preserve; scarce]7. Though he walked free from court, his[填空1]kept bothering him for the wrong doing he had done.
【简答题】 Direction: Fill in the blanks with the words given below. Change the form if necessary.[privilege; component; stagnant; entangle; superficial; arresting; expound; penetrating; indulge; click]1. Their national economy is[填空1].
【简答题】 Direction: Fill in the blanks with the words given below. Change the form if necessary.[integrity; conscience; yield; appoint; assure; ensure; demonstrate; clarify; preserve; scarce]10. This is the first time that a woman has been[填空1]to the post.
【简答题】 Direction: Fill in the blanks with the words given below. Change the form if necessary.[chore; talent; crowded; earnings; finance; festive; memorable; sacrifice; smash; reproduction]5. She views physical exercise primarily as an unavoidable[填空1].
【简答题】 Direction: Fill in the blanks with thephrases given below. Change the form if necessary.[set off; after all; attach to; burst into laughter; lean against; teach...a lesson; take off; come to sense; give in to]1. Under no circumtances shall we[填空1]pressures or threats imposed by foreign countries.
【简答题】 简述解释程序与编译程序的作用与区别。
【简答题】 对已命名的文档,Word的“定时自动保存”功能与“保存”功能有何区别?
【简答题】 在Excel工作表中,如何在B2至H2区域7个单元格中依次快速输入列标题“星期一” 、“星期二”、“星期三 ”、“星期四”、“星期五”、“星期六”、“星期日”?