问题 单项选择题

有以下程序:#define P 3void F(int x){return(P*x*x);}main(){printf("%d\n",F(3+5));}程序运行后的输出结果是______。

A.192

B.29

C.25

D.编译出错

答案

参考答案:D

解析:return 语句用于从被调函数带回一个函数值。void 关键字表示“无类型”,即不需要从被调函数中 带回函数值,所以不需要 return 语句,故编译时出错。

完形填空
Jason and Harry joined a wholesale company together just after graduation. They both worked very hard.
After several years, the boss made Harry sales manager but Jason      a salesman. One day Jason could not stand it anymore. He handed in his resignation letter (辞职信) to the boss and complained that the boss did not         hard-working employees, but only raised those        tried to please him. He thought that it was really        .
In order to help Jason to realize the        between him and Harry, the boss asked Jason to do the        --- "Go and find out if there is anyone selling watermelons in the market." Charlie went, returned and only said, "Yes." The boss asked, "How much per kg?" Charlie went back to the market to ask and returned to        , "$ 12 per kg."
The boss told Jason that he would ask Harry the        question. Harry went, returned and said, "Boss, only one person selling watermelons. $12 per kg, $ 100 for 10 kg. He has a total of 340 melons. On the table are 58 melons, and every melon weighs about 15 kg,       from the South two days ago. They are fresh, red, and of good        ."
Jason was        and he realized the difference between himself and Harry. He decided not to leave but to learn from Harry.
My dear friends, you know, a more        person is more observant(观察力敏锐的), thinks more and understands in        . For the same matter, he sees several years ahead,       you see only tomorrow. The difference between a year and a day is 365 times, so how could you        ?
Think: how far have you seen ahead in your life? How thoughtful are you?
小题1:
A.made B.became C.remained D.kept
小题2:
A.enjoy B.meet C.treat D.value
小题3:
A.whichB.thatC.whoD.whom
小题4:
A.unusual B.unfair C.careless D.meaningless
小题5:
A.competitionB.relationship C.difference D.distance
小题6:
A.following B.finding C.shopping D.searching
小题7:
A.offer B.answer C.retellD.repeat
小题8:
A.familiar B.difficult C.same D.simple
小题9:
A.taken B.come C.bought D.heard
小题10:
A.look B.quality C.condition D.shape
小题11:
A.movedB.surprisedC.puzzled D.encouraged
小题12:
A.important B.intelligentC.successful D.hardworking
小题13:
A.time B.depth C.need D.common
小题14:
A.while B.though C.unless D.since
小题15:
A.see B.think C.know D.win
问答题 案例分析题