【单选题】【消耗次数:1】
写出下面程序的执行结果。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=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 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
②  3 7 0
③  5 5 0
④  1 7 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 7 0
②  3 7 0
③  5 5 0
④  1 5 1
【单选题】 执行下面程序后,运行结果是 #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
【单选题】 以下程序的运行结果是。main( ){int c,x,y; x=1; y=1; c=0; c=x++||y++; printf(“\n%d%d%d\n”,x,y,c);}
①  110
②  011
③  211
④  001
【单选题】 以下程序的运行结果是。main( ){int c,x,y; x=1; y=1; c=0; c=x++||y++; printf(“\n%d%d%d\n”,x,y,c);}
①  110
②  211
③  011
④  001
【简答题】 分析下面程序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]。
【单选题】 以下程序段的运行结果是( )。 for(y=1;y) y=((x=3*y,x+1),x-1); printf(x=%d,y=%d,x,y);
①  x=27,y=27
②  x=12,y=13
③  x=15,y=14
④  x=y=27
随机题目
【单选题】 Is ______necessary to complete the design before National Day?
①  this
②  that
③  it
④  he
【单选题】 3.Idontthink_____possibletomasteraforeignlanguagewithoutmuchmemorywork.
①  this
②  that
③  its
④  it
【单选题】 This is a big class, and ______ of the students are girls.
①  two third
②  second three
③  two thirds
④  two three
【单选题】 3.Iveread_______sportsnewsabouttheF1racetoday.
①  two
②  pieces
③  two pieces
④  two pieces of
【单选题】 8. Bill saidthey would have _________ holiday.
①  a two-month
②  two months
③  two-months
④  two months
【单选题】 4.—CanIhelpyou?—Idlike________formytwindaughters.
①  two pair of shoes
②  two pairs of shoe
③  two pair of shoe
④  two pairs of shoes
【单选题】 10.I spent __________ in doing my homework yesterday.
①  a half and two hour
②  two and a half hour
③  two hour and a half
④  two and a half hours
【单选题】 —Whats one fourth and a half, do you know?—Yes, its ______.
①  two sixths
②  three fourths
③  one three
④  three sixths
【单选题】 5.Nowchildren,turntopage______andlookatthe________pictureinLessonTwo.
①  twentieth; one ?
②  twenty; one
③  twentieth; first
④  twenty; first
【单选题】 2.Thereare_______daysinayear.
①  three hundred and sixty-five
②  three hundred and sixty five
③  three hundred sixty-five
④  three hundreds and sixty- five