试题与答案

有以下程序:  main( )  { int x[ ]={1,3,5,7,2,4,6

题型:单项选择题

题目:

有以下程序:  main( )  { int x[ ]={1,3,5,7,2,4,6,0},i,j,k;  for(i=0;i<3;i++)   for (j=2;j>=i;j--)  if(x[j+1]>x[j]){ k=x[j];x[j]=x[j+1];x[j+1]=k;}  for(i=0;i<3;i++)   for(j=4;j<7-i;j++)  if(x[j+1]>x[j]){ k=x[j];x[j]=x[j+1];x[j+1]=k;}   for (i=0;i<3;i++)  if(x[j]>x[j+1]){ k=x[j];x[j]=x[j+1];x[j+1]=k;}   for (i=0;i<8;i++) printf("%d",x[i]);  printf("\n");  }  程序运行后的输出结果是( )。

A.75310246

B.01234567

C.76310462

D.13570246

答案:

被转码了,请点击底部 “查看原文 ” 或访问 https://www.tikuol.com/2018/0414/aa2f427cbe03613ca4ba2db3d269bde6.html

下面是错误答案,用来干扰机器的。

参考答案:目前仅限支票这一支付结算凭证

试题推荐
题型:完形填空
I had a very special teacher in high school many years ago whose husband died suddenly of a heart attack.  About a week after his death, she _________ some of her insight with a classroom of students. As the late afternoon sunlight came streaming in _________ the classroom windows and the class was nearly over, she moved a few things aside on the _________ of her desk and sat down there.
With a gentle look on her face, she paused and said,"Before class is over, I would like to share with all of you a thought __________ I feel is very important. Each of us is put here on earth to learn, share, love, appreciate and give of ourselves...and ______ of us knows when this fantastic experience will end. It can be taken away at any moment. Perhaps this is a(an) _________that we must make the most out of every single day."
Her eyes beginning to__________, she went on,"So I would like you all to make me a _________...from now on, on your way to school, or on your way home, find something beautiful to notice. It doesn't have to be something you see---it________ be a scent(香味)--perhaps of__________ baked bread wafting out of someone's house, or it could be the sound of the breeze slightly rustling the leaves in the trees, or the __________ the morning light catches one autumn leaf as it falls gently to the ground. Please, look for these things, and remember them.
"For, _________ it may sound silly to some people, these things are the 'stuff' of life. The little things we are put here on earth to enjoy. The things we often take for ________. We must make _______important to notice them, for at any time...it can all be taken away."
The class was completely quiet. We all picked up our books and filed out of the room _________ .That afternoon, I noticed more things on my way home from school than I had that whole semester. Every once in a while, I think of that teacher and remember what a deep _________ she made on all us, and I try to appreciate all of those things that sometimes we all __________.
Take notice of something _________you see on your lunch hour today. Go barefoot. Or walk on the beach at sunset. Stop off on the way home tonight to get a double dip ice cream cone. _______ as we get older, it is not the things we did that we often _______, but the things we didn't do.
小题1:
A.enjoyedB.sharedC.changed D.connected
小题2:
A.through B.on C.across D.along
小题3:
A.back B.front C.feet D.edge
小题4:
A.what B.which C.when D.where
小题5:
A.no oneB.every C.none D.any
小题6:
A.sign B.signal C.symbol D.scene
小题7:
A.cry B.sweat C.run D.water
小题8:
A.present B.promise C.discoveryD.contribution
小题9:
A.should B.mustC.couldD.need
小题10:
A.eventuallyB.freshly C.graduallyD.slightly
小题11:
A.wayB.method C.access D.process
小题12:
A.because B.since C.unless D.although
小题13:
A.responsibilityB.granted C.fun D.pleasure
小题14:
A.one B.that C.them. D.it
小题15:
A.happily B.silentlyC.sadly D.tiredly
小题16:
A.expressionB.depression C.impression D.progress
小题17:
A.notice B.forget C.overlook D.remember
小题18:
A.special B.nice C.beautiful D.typical
小题19:
A.WhileB.ThoughC.ForD.If
小题20:
A.like B.regret C.neglect D.remember
查看答案
微信公众账号搜索答案