【单选题】【消耗次数: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 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 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
②  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 5 1
②  3 7 0
③  5 5 0
④  1 7 0
【单选题】 写出下面程序的执行结果。main( ){ int x,y=1; if(y!=0) printf(“%d\t”,x); if(y= =0) else printf(“%d\t\n”,x);
①  1 3
②  1 5
③  5 3
④  5 5
【单选题】 写出下面程序的执行结果。main( ){ int x,y=1; if(y!=0) printf(“%d\t”,x); if(y= =0) else printf(“%d\t\n”,x);}
①  1 3
②  1 5
③  5 3
④  5 5
【单选题】 以下程序输出结果是( )。 Main() {int x=2,y=-1,z=2; if(xy) if(y0) z=0; else z+=1; printf(%d\n }
①  3
②  2
③  1
④  0
【单选题】 执行下面程序后,运行结果是 #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
【判断题】 x0=-5+t,y0=1+t是3x+6y=15的解.
①  正确
②  错误
【简答题】 分析下面程序main(){ int x=2,y,z;x*=3+2;printf(%d\nx*=y=z=4;printf(%d\nx=y=1;z=x++-1;printf(%d,%d\n,x,z);z+=-x++ +(++y);printf(%d,%d,x,z); }程序的输出结果是[填空1]。
【单选题】 设有如下定义:int x=0,y=3,z; 则语句printf(%d\n,z=(x%y,x/y));的输出结果是
①  1
②  0
③  4
④  3
随机题目
【单选题】 7.哪句话的描述是正确的?______。
①  A. 严复提出的翻译是:重神似不重形似
②  B. 傅雷的翻译标准是:信、达、雅
③  C. 许渊冲的翻译标准是:美化之艺术,创优似竞赛
④  D. 泰特勒的翻译标准是:通顺
【单选题】 At the hotel I always finished the meal with ice cream and the girls there would laugh because I like it so much.
①  A.我在饭店吃饭,最后总是吃冰激凌。我吃得津津有味,惹得那些女服务员发笑。
②  B.在饭店里,我总是以冰激凌来结束吃饭。我吃得津津有味,惹得那些女服务员发笑。
③  C.我在饭店吃饭,最后总是吃冰激凌。因为我是那么的喜欢它,所以那里的女孩子都笑我。
④  D.在饭店里,我总是以冰激凌来结束吃饭。因为我是那么的喜欢它,所以那里的女孩子都笑我。
【单选题】 No man is so foolish but he may give another good counsel sometimes.
①  A.没有人如此愚笨,他有时也能给别人提出好的忠告。
②  B.没有人愚笨到偶尔也给别人提出好的忠告。
③  C.人再愚笨,有时也能给别人提出好的忠告。
④  D.偶尔愚笨的人也能给别人提出好的忠告。
【单选题】 下面哪个选项是错误的?________。
①  A. 这衣服将很快晒干。译文:The clothes will soon dry outin the sun.
②  B. 夏收以后,有些农民在公路上晒粮食。译文:After the summer harvest, some farmers spread their grains on the highway and have them dried outin the sun.
③  C. 你把客人晒在一边是不礼貌的。译文:It is impolite for you to ignore your guests.
④  D. 我的皮肤晒得比你黑。译文:My skin has becomeblacker than yours.
【单选题】 It was quite a few years before Mark Twain finally finished his last novel.
①  A.在马克·吐温完成最后一部小说之前,已经是好几年了。
②  B.在马克·吐温完成最后一部小说之前,又是好几年了。
③  C.过了好几年,马克·吐温才终于完成最后一部小说。
④  D.马克·吐温完成了最后一部小说时,又过了好几年。
【单选题】 It’s better having short lines with more bank tellers.
①  [A] 如果银行出纳员多一些,不用排长队就好了。
②  [B]最好是排的队短一些,银行出纳员多一些。
③  [C]要是排的队短,银行出纳员最好多一些。
④  [D] 银行出纳员多一些,队就排得更短了。
【单选题】 She blurred the ink on the letter with her tears.
①  [A] 他的眼泪把信上的墨水弄得模糊不清。
②  [B] 他的眼泪把信上的字迹弄得模糊不清。
③  [C] 他的眼泪把信上的字句弄得模糊不清。
④  [D] 他的眼泪把信上的话语弄得模糊不清
【单选题】 While we cannot close the gulf between us, we can try to bridge it so that we may be able to talk across it.
①  A.当我们无法弥合我们之间的鸿沟时,我们可以搭一座桥,以便越过它进行会谈。
②  B.在我们不能弥合双方之问的鸿沟时,我们可以修一座桥,为的是能够进行会谈。
③  C.虽然我们不能弥合双方之间的鸿沟,我们却能够设法搭一座桥,以便我们能够越过它进行会谈。
④  D.虽然我们可以修一座桥,为的是能够进行会谈,但我们却无法弥合双方之间的鸿沟。
【单选题】 A powerful indictment of America’s disregard of ecology, Silent Spring was aimed chiefly at the wholesale use of chemical pesticide, especially DDT.
①  A.有力地控诉了美国对生态的忽视,《沉默的春天》主要是针对大规模使用农药,特别是滴滴涕。
②  B.一个对美国忽视生态的有力控诉,《沉默的春天》主要是针对大规模使用农药,特别是滴滴涕。
③  C.《沉默的春天》是对美国忽视生态的有力控诉,它主要是针对大规模使用农药,特别是对滴滴涕的使用进行了控诉。
④  D.《沉默的春天》对美国忽视生态,主要是针对大规模使用农药,特别是滴滴涕的使用,进行了有力的控诉。
【单选题】 A pretext was the last thing that Hastings was likely to want.
①  A.最后,哈丁斯好像需要一个借口。
②  B.哈丁斯可能不需要任何借口。
③  C.最后,哈丁斯可能想要的那个东西就是借口。
④  D.借口好像是哈丁斯想要的最后的东西。