【单选题】【消耗次数: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
随机题目
【单选题】 Younevertoldmeyouhaveseenthefilm,________?
①  hadyou
②  didn’tyou
③  didyou
④  weren’tyou
【单选题】 The school was named ________ the hero who gave his life for the cause of the liberation.
①  for
②  with
③  after
④  about
【单选题】 Youdon’thavetobeinsuchahurry,Iwouldratheryou________onbusinessfirst.
①  wouldgo
②  willgo
③  went
④  havegone
【单选题】 Do what you think is right, ________ they say.
①  whatever
②  however
③  whenever
④  whichever
【单选题】 It suddenly ________ him that he should solve the problem with a computer.
①  occurred to
②  struck at
③  hit on
④  dawned in
【单选题】 The most important ________ of his speech was that we should all work whole-heartedly for people.
①  element
②  spot
③  sense
④  point
【单选题】 Thescientistdidn’tmind________ andwentonwithhisinvestigation.
①  laughingat
②  tobelaughedat
③  beinglaughedat
④  laughedat
【单选题】 If you work hard, you will be ________; but if you don’t, you will be punished.
①  relaxed
②  relieved
③  reduced
④  rewarded
【单选题】 These plastic flowers look so ________ that many people think they are real.
①  natural
②  beautiful
③  artificial
④  similar
【单选题】 For many people today, reading is no longer relaxation. To keep up their work they must read letters, reports, trade publications, interoffice communications, not to mention newspapers and magazines: a never-ending flood of words. In getting a job or advancing in one, the ability to read and comprehend quickly can mean the difference between success and failure. Yet the unfortunate fact is that most of us are poor readers. Most of us develop poor reading habits at an early age, and never get over them. The main problem lies in language itself—words. Single words have little meaning until they are combined into phrases, sentences and paragraphs. Unfortunately, however, the untrained reader does not read groups of words. He reads one word at a time, often regressing to reread words or passages. Regression, or looking back over what you have just read, is a common bad habit in reading. Another habit which slows down the speed of reading is vocalization—sounding each word either orally or mentally as one reads. To overcome these bad habits, some reading clinics use a device called accelerator (加速器), which moves a bar down the page at a predetermined speed. The bar is set at a slightly faster rate than the reader finds comfortable, in order to “stretch” him. The accelerator forces the reader to read fast, making word-by-word reading, regression and vocalization virtually impossible. At first, comprehension is sacrificed for speed. But when you learn to read ideas, you will not only read faster, but your comprehension will improve. Many people have found their reading skills improved a lot after some training. According to the passage, today many people read for __________.
①  news
②  their work
③  information
④  entertainment