【单选题】【消耗次数:1】
下述程序的运行结果( )。 #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 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() { 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
【单选题】 下列程序执行后的输出结果是 #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
【单选题】 有如下程序: #includevoid main( ) { int a=2,b=-1,c=2; if (ab) if (b0) c=0; else c++; printf(%d\n } 该程序的输出结果是
①  0
②  1
③  2
④  3
【单选题】 下述程序的运行结果( )。 #includevoid main() { int n; for(n=1;nn++) { if(n%3==0)continue; printf(%d } }
①  12345678
②  124689
③  12457810
④  1234456
【单选题】 下述程序的运行结果( )。 #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
【单选题】 以下程序运行结果是( )。 Main() {int if(m++5) printf(%d\n else printf(%d\n,m--); }
①  4
②  5
③  6
④  7
随机题目
【判断题】 根据组距数列计算的算术平均数只是一个近似值。
①  正确
②  错误
【判断题】 直接用标准差比较两个平均数代表性大小的前提条件是两个被比较的平均数相等。
①  正确
②  错误
【判断题】 当变量值的连乘积等于总比率或总速度时,宜用几何平均法计算平均数。
①  正确
②  错误
【多选题】 标志变异指标
①  是衡量平均指标代表性的尺度
②  可用来研究现象发展变化的均衡性与协调性
③  反映现象的集中趋势
④  反映现象的离中趋势
⑤  既反映集中趋势,又反映离中趋势
【多选题】 相对指标中分子与分母可以互换位置的有
①  计划完成程度许多相对指标
②  结构相对指
③  比较相对指标
④  强度相对指标
⑤  动态相对指标
【多选题】 下列指标中属于时期指标的有
①  全年出生人数
②  国民生产总值
③  粮食总产量
④  商品销售额
⑤  产品合格率
【多选题】 相对指标中分子与分母不可以互换位置的有
①  计划完成程度许多相对指标
②  结构相对指标
③  比较相对指标
④  强度相对指标
⑤  动态相对指标
【单选题】 标志变异指标中最常用的是
①  全距
②  平均差
③  标准差
④  离散系数
【单选题】 比较相对指标是
①  同类现象在不同空间上对比
②  同类现象在不同时间上对比
③  同一现象的部分与总体的对比
④  有联系的不同现象的相互对比
【单选题】 在加权算术平均数中,如果各个变量值都扩大3倍,而频数都减少为原来的三分之一,则平均数
①  不变
②  减少了
③  扩大3倍
④  不能确定