问题 填空题

下列程序的输出结果是______。
main()
int a=1,b=2,c=3,t=0;
if(a<b) t=a; a=b; b=t;
if(a<c) t=a; a=c; c=t;
printf("%d, %d, %d\n", a, b, c);

答案

参考答案:C,A,B

解析:分析程序,第一个if语句,a=1,b=2,控制条件a<b成立,则交换a、b的值,此时a=2,b=1。第二个if语句,a=2,c=3,控制条件a<c成立,则交换a、c的值,此时a=3,c=2。

完形填空
Letting go of success
I want to make the most of every day. And, like most people, I've____ that the best way to do it is to let go of past failures. But that's not all. One can never fully ____ today while thinking too much about past successes, either. People never ____ while resting comfortably on their laurels (荣誉). The ___ is that sometimes our successes hold us back more than our failures!
I once ____ a story about the Oscar owner, actor Clark Gable. A friend ____ Gable one afternoon at the actor's home. She brought along her ____ son, who was playing happily with toy cars on the floor. He____ he was racing those cars around a great track, which in ____ was an imaginary circle around a golden statue (雕像). The small statue the boy played with was actually the Oscar Clark Gable ____ for his performance in the 1934 movie It Happened One Night.
When his mother told him the time had come to ____, the little boy asked the actor, “Can I have this?” ____ to the Oscar.
“Sure, ” he smiled. “It's yours.”
The horrified mother ____. “Put that back immediately!”
Giving the child the golden statue, Clark Gable said, “Having the Oscar around doesn't mean anything to me;   ____it does.” The actor seemed to know that past success could be a ____ hammock (吊床) upon which he may be tempted to____, rather than a springboard setting him to begin a new start.
You may have learned to let go of past ____ and mistakes in order to free the present. But will you forget past successes and achievements in order to free the ____? Will your past be a springboard or a restful hammock?
“I like the ____ of the future better than the history of the past,” said Thomas Jefferson. I ____. After all, the future, not the past, is where the rest of your life will be lived.
小题1:A discovered   B. inferred     C. hoped    D. worried
小题2:
A.spendB.liveC.understandD.enjoy
小题3:
A.struggleB.workC.succeedD.learn
小题4:
A.storyB.factC.ideaD.news
小题5:
A.wroteB.toldC.knewD.heard
小题6:
A.sawB.recognizedC.metD.visited
小题7:
A.carefulB.smallC.lonelyD.clever
小题8:
A.pretendedB.believedC.insistedD.suggested
小题9:
A.realityB.caseC.turnD.need
小题10:
A.caredB.askedC.wonD.looked
小题11:
A.actB.leaveC.playD.wait
小题12:
A.runningB.gettingC.pointingD.shouting
小题13:
A.objectedB.noticedC.sufferedD.breathed
小题14:
A.sellingB.keepingC.earningD.sharing
小题15:
A.specialB.comfortableC.expensiveD.necessary
小题16:
A.restB.cheatC.stopD.sit
小题17:
A.difficultiesB.eventsC.failuresD.achievements
小题18:
A.timeB.futureC.bodyD.brain
小题19:
A.ideaB.meaningC.dreamsD.thoughts
小题20:
A.obeyB.permitC.wishD.agree
判断题