【单选题】【消耗次数:1】
下述程序的运行结果( )。 #includevoid main() { int n; for(n=1;nn++) { if(n%3==0)continue; printf(%d } }
12345678
124689
12457810
1234456
参考答案:
复制
纠错
相关题目
【单选题】 下述程序的运行结果( )。 #includevoid main() { int a=1,b=2,c=3; if(c=a)printf(%d\n else printf(%d\n }
①  1
②  3
③  5
④  6
【单选题】 下述程序的运行结果( )。 #includevoid main() { int p,a=0; if(p=a!=0)printf(%d\n else printf(%d\n,p+2); }
①  1
②  2
③  3
④  5
【单选题】 下述程序的运行结果( )。 #includevoid main() { char ch; int i=0; for(ch=achzch++) { printf(%c ,ch); if(i%10==0) printf(\n } printf(\n }
①  a b c d e f g h i j k l m n o p q r s t u v w x y z
②  a b c d e f g h i j k l m n o p q r s t u v w x y z
③  a b c d e f g h i j k l m n o p q r s t u v w x y z
④  a b c d e f g h i j k l m n o p q r s t u v w x y z
【单选题】 下述程序的运行结果( )。 #includevoid main() { int a=5,b=4,c=3,d=2; if(ac)printf(%d\n else if((c-1=d)==1)printf(%d\n,d+1); else printf(%d\n,d+2); }
①  0
②  1
③  2
④  3
【单选题】 下述程序的运行结果( )。 #includevoid main() { int a=5,b=4,c=3,d=2; if(ac)printf(%d\n else if((c-1=d)==1)printf(%d\n,d+1); else printf(%d\n,d+2); }
①  1
②  2
③  3
④  4
【单选题】 #includevoid main() { int n=4; while(n--) printf(%d\n,--n); }
①  2 0
②  1 0
③  2 1
④  3 0
【单选题】 下述程序的运行结果( )。 #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=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 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
【单选题】 下述程序的运行结果( )。 #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
随机题目
【单选题】 测回法适用于观测()间的夹角。
①  三个方向
②  两个方向
③  三个以上方向
④  一个方向
【单选题】 在普通水准测量中,水准尺上每个读数应读()位数。
①  5
②  3
③  4
④  5
【单选题】 在地形图上,长度和宽度都不依比例尺表示的地物符号是()。
①  非比例符号
②  半比例符号
③  比例符号
④  地物注记
【单选题】 在钢尺量距的一般方法中,后尺手所持的是()。
①  钢尺的末端
②  钢尺的零端
③  测钎
④  标杆
【单选题】 B两点间的距离为200.23m,方位角为121°23′36″,则AB的x坐标增量为()m。
①  -170.92
②  170.92
③  104.30
④  -104.30
【单选题】 在以()km为半径的范围内,可以用水平面代替水准面进行距离测量。
①  5
②  10
③  15
④  20
【单选题】 在水准仪上()。
①  没有圆水准器
②  水准管精度低于圆水准器
③  水准管用于精确整平
④  每次读数时必须整平圆水准器
【单选题】 图示(a)(b)(c)三种荷载作用下,梁AB的支座反力为()
①  (a)A=m/l(↓)B=m/l(↑)(b)A=0B=P(↑)(C)A=P/2(↑)B=P/2(↑)
②  (a)A=m/l(↑)B=m/l(↑)(b)A=P(↑)B=0(C)A=P/2(↓)B=P/2(↑)
③  (a)A=m/l(↓)B=m/l(↓)(b)A=0B=P(↑)(C)A=P/2(↑)B=P/2(↑)
④  (a)A=m/l(↓)B=m/l(↑)(b)A=0B=P(↑)(C)A=P/2(↓)B=P/2(↑)
【单选题】 第二类拉格朗日方程不可用于研究具有()质点系的力学问题。
①  完整约束
②  定常约束
③  非完整约束
④  非定常约束
【单选题】 反向,即M1=M2,但二者不共线,则正方体()。
①  平衡
②  不平衡
③  因条件不足,难以判断是否平衡