【单选题】【消耗次数:1】
若已定义int x=-16,y=-12,z;语句z=x<=y;运行后z的值为()。
t
1
f
0
参考答案:
复制
纠错
相关题目
【单选题】 若已定义intx=-16,y=-12,z;语句z=x运行后z的值为()。
①  t
②  1
③  f
④  0
【单选题】 若已定义intx=5,y=9,z;语句z=x运行后z的值为()。
①  1
②  t
③  0
④  f
【单选题】 已知if (xy||xz);z=x; x=y; y=z;int x=30,y=50,z=80;语句执行后变量x、y、z的值分别为:。
①  x=50, y=80, z=80
②  x=50, y=30, z=30
③  x=30, y=50, z=80
④  x=80, y=30, z=50
【单选题】 已知 int x=30,y=50,z=80;以下语句执行后变量x、y、z的值分别为:。if (xy||xz)z=x; x=y; y=z;
①  x=50, y=80, z=80
②  x=80, y=30, z=50
③  x=30, y=50, z=80
④  x=50, y=30, z=30
【单选题】 已知 int x=30,y=50,z=80;以下语句执行后变量x、y、z的值分别为:。if (xy||xz)z=x; x=y; y=z;
①  x=50, y=80, z=80
②  x=50, y=30, z=30
③  x=30, y=50, z=80
④  x=80, y=30, z=50
【单选题】 若w,x,y,z,m均为int型变量,则执行下面语句后的m值是:w=1;x=2;y=3;z=4;m=w<y)?w:x;m=m<y)?m:y;m=m<z)?m:Z;
①  1
②  2
③  3
④  4
【单选题】 设有如下定义:int x=0,y=3,z; 则语句printf(%d\n,z=(x%y,x/y));的输出结果是
①  1
②  0
③  4
④  3
【单选题】 已知x=45,y'=a',z=0;则表达式(x>=z&&y'<z'||!y)的值是()。
①  0
②  语法错
③  1
④ 
【单选题】 若w=1,x=2,y=3,z=4,则表达式w<x?w:y<z?y:z的值是()
①  4
②  3
③  2
④  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
随机题目
【单选题】 14. Through the window we can see nothing but ____ buildings.
①  tall very many
②  very many tall
③  very tall many
④  many very tall
【简答题】 Thousands of years ago in Egypt (埃及), Kings built the pyramids (金字塔). They used to build them as their tombs (坟墓). The kings thought the pyramids would help them find life [填空1]death. They also wanted the world remember them as important people. Some pyramids were for queens, but they are [填空2]interesting because they are not so big. The[填空3]pyramid that we know today is the pyramid that we know today is the pyramid near Sahara ( 撒哈拉沙漠) in Egypt. It is about 5,000 years old. There are many pyramids along the Nile River (尼罗河). The largest is the pyramid of Khufu (法老胡夫). It is made of two million three hundred thousand huge stones, most of [填空4]higher than a person. It is about 144 meters high. Inside the pyramid[填空5]the burial rooms (墓室)for the king and queen and long passage (通道) ways [填空6]these rooms. The rest of the pyramid is solid (坚固的) stone. We know there were wonderful[填空7]in the pyramid. Robbers[填空8]into the pyramids and took many of these treasures (财宝). Today some of the treasures are in museums [填空9]. How did the people of ancient [填空10]build the pyramids?How did they carry and lift the huge stones? Each stone [填空11]so well and they didn’t have our[填空12]machines. Scientists[填空13]the pyramids but nobody can say just how they [填空14]. Some day if you can, you ought to go to see the pyramids. I[填空15]you that they would be amazing.1. A. beforeB. afterC. behindD. in front of2. A. moreB. lessC. noD. very3. A. eldestB. youngestC. oldestD. smallest4. A. themB. whomC. whichD. that5. A. there areB. there isC. areD. is6. A. toB. withC. forD. in7. A. treasureB. treasuresC. moneyD. gold8. A. cameB. wentC. brokeD. walked9. A. thoughB. howeverC. everD. since10. A. dayB. momentC. momentsD. days11. A. wearsB. fitsC. liftsD. carries12. A. freshB. electronicC. modernD. scientific13. A. have studiedB. will studyC. studiedD. were studying14. A. have done thatB. did soC. did itD. are doing it15. A. sureB. assureC. insureD. ensure
【单选题】 5.I will visit you if Father me.
①  let
②  lets
③  is letting
④  will let
【单选题】 9.“Has he seen this film?” “Yes. He _______ it several days ago.”
①  saw
②  has seen
③  had seen
④  was seeing
【单选题】 3.A hunter is a man who animals.
①  catch
②  catches
③  will catch
④  was catching
【单选题】 2.She the door before she goes away.
①  had locked
②  is locking
③  has locked
④  was locking
【单选题】 4.What if I drink this?
①  happens
②  is happening
③  will happen
④  is happened
【单选题】 10.Now Mike isn’t here. He _________ Mr. Green’s. Perhaps he _______ back in a few minutes.
①  went to; is coming
②  has gone to; will come
③  has been to ; will be
④  is going to; has come
【单选题】 6.Look out! That tree _______ fall down.
①  is going to
②  will be
③  shall
④  would
【单选题】 8.They can’t leave until they ______ their work.
①  did
②  are doing
③  have done
④  has done