问题 填空题

若变量a,b已定义为int类型并赋值 21 和 55,要求用printf函数以a=21,b=55 的形式输 出,请写出完整的输出语句 _________。

答案

参考答案:printf("a=%d,b=%d",a,b);

解析:printf 函数为格式输出函数,括号内包括两部分:(1)“格式控制”是用双引号括起来的字符串, 其中包括两种信息:①“格式说明”由“%”和格式字符组成,此题定义为 int 型所以要用%d;②“普通 字符”即需要原样输出的字符,此题目中为 a=,b=;(2)“输出列表”是需要输出的一些数据,可以是表 达式。

单项选择题 A3/A4型题
阅读理解

Many years ago, in a small town, there lived a doctor. He was good and kind. At any time of the day and night, he was always ready to go to help a sick person. Everyone in the town liked him and people always went to him when there was anything wrong.

The years went past, and the doctor became old. He began to lose his memory.When people noticed this, they didn’t go to him any more.

“He may give us the wrong medicine,” they said, and they were afraid.

The good old doctor noticed that people didn’t come to him any more but didn’t understand why. So he asked, “Why does no one come to me now?”

No one wanted to tell him the real reason because they didn’t want to make the good old man unhappy, so they said, “You have helped all the sick people in the town. There is no one sick now.”

The doctor was pleased when he heard that.

小题1:People always went to the doctor when they were____________.

A.wrong

B.not right

C.not well

D.not happy小题2: “He began to lose his memory.”means __________.

A.He couldn’t know his sick persons any longer.

B.He forgot everything in the past.

C.He couldn’t find anything.

D.He couldn’t remember things well.小题3:The sick people didn’t come to the doctor any more because____.

A.there was no sick man in the town

B.he might give them the wrong medicine

C.they were afraid of him

D.he was old and no longer a doctor小题4: The old doctor was _________ when he heard that there was no one sick in the town.

A.sorry

B.angry

C.glad

D.surprised