【单选题】【消耗次数: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); }
1
2
3
4
参考答案:
复制
纠错
相关题目
【单选题】 下述程序的运行结果( )。 #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=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 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=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); } 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 n; for(n=1;nn++) { if(n%3==0)continue; printf(%d } }
①  12345678
②  124689
③  12457810
④  1234456
【单选题】 以下程序运行结果是( )。 Main() {int if(m++5) printf(%d\n else printf(%d\n,m--); }
①  4
②  5
③  6
④  7
【单选题】 有如下程序: #includevoid main( ) { int a=2,b=-1,c=2; if (ab) if (b0) c=0; else c++; printf(%d\n } 该程序的输出结果是
①  0
②  1
③  2
④  3
随机题目
【单选题】 细菌粘附细胞的结构是( )
①  中介体
②  芽胞
③  荚膜
④  鞭毛
⑤  菌毛
【单选题】 细菌的休眠体是( )
①  异染颗粒
②  芽胞
③  质粒
④  中介体
⑤  胞浆颗粒
【单选题】 测量细菌大小的单位是( )
①  毫米
②  厘米
③  分米
④  微米
⑤  纳米
【单选题】 关于质粒,错误的是( )
①  双股闭合环状DNA
②  存在于细菌胞浆中
③  质粒丢失后,细菌不能生存
④  可将有关性状传递给另一细菌
⑤  可自行复制
【单选题】 细菌细胞壁的主要成分为( )
①  肽聚糖
②  脂磷壁酸
③  外毒素
④  表面蛋白质
⑤  五肽桥
【单选题】 对粪便标本进行细菌的分离培养,应选择( )
①  基础培养基
②  半固体培养基
③  选择培养基
④  增菌培养基
⑤  固体斜面培养基
【单选题】 若要研究细菌的生物学性状,应培养细菌至( )
①  迟缓期
②  对数期
③  最大稳定期
④  加速期
⑤  衰亡期
【单选题】 大多数细菌的分裂倍增时间(代时)是( )
①  1h
②  2h
③  20~30min
④  18~20min
⑤  18~20h
【单选题】 细菌的分裂方式是( )
①  二分裂
②  出芽
③  复制
④  细胞断裂
⑤  有性繁殖
【单选题】 关于热原质,错误的是( )
①  是细菌分泌的外毒素;
②  大多由G<sup>-</sup> 菌产生;
③  高压蒸汽灭菌(121℃20分钟)不被破坏;
④  是细胞壁的脂多糖;
⑤  能引起人体发热反应