【单选题】【消耗次数: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
随机题目
【单选题】 He is very good_______designing and drawing.
①  at
②  in
③  on
【单选题】 When I was a child, I_______go back home on time.
①  have to
②  must
③  had to
【单选题】 Let’s go and do the barbecue,_______?
①  will you
②  shan’t we
③  shall we
【单选题】 加快建立绿色生产和消费的法律制度和政策导向,建立健全(  )的经济体系。
①  绿色低碳循环发展
②  绿色节约循环发展
③  绿色低碳节约发展
④  节约低碳循环发展
【单选题】 生态文明制度建设的途径包括( )。
①  制定生态文明发展的总体规划
②  加快相关法律法规建设
③  转变政府职能
④  以上都是
【单选题】 资源和环境是经济社会( )发展的物质基础和保障,经济的发展离不开资源和环境的支撑。
①  全面
②  可持续
③  又快又好
④  协调
【单选题】 循环经济的原则是资源使用的( ),其生产的基本特征是( )。
①  减量化、再利用、资源化再循环;低消耗、低排放、高效率
②  低消耗、低排放、高效率;减量化、再利用、资源化再循环
③  减量化、再利用、资源化再循环;低消耗、高排放、高效率
④  减量化、再利用、资源化再循环;高消耗、低排放、高效率
【单选题】 将( )纳入政府的工作目标与政绩考核指标,各级政府和环保主管部门的环境决策行为、经济环境行为和环境管理部门的监管工作,听取群众意见。
①  治理环境
②  节约资源
③  保护生态
④  保护环境
【单选题】 ( )作为当代乃至我们长期追求的目标,受到全世界不同制度国家的普遍关注,成为时代潮流。
①  生态文明
②  生态文化
③  生态和谐
④  生态精神
【单选题】 习近平总书记2017年5月26日在中共中央政治局第四十一次集体学习时,就推动形成绿色发展方式和生活方式提出6项重点任务——加快转变经济发展方式、加大环境污染综合治理、加快推进生态保护修复、(  )。①提升环保效能②全面促进资源节约集约利用③倡导推广绿色消费④完善生态文明制度体系
①  ①②③
②  ②③④
③  ①③④
④  ①②④