问题 填空题

下列程序的输出结果是 【6】
#define PR(a)printf("%d\t",(int)(a))
#define PRINT(a)PR(a);printf("ok!")
main()
int i,a=1;
for(i=0;i<3;i++)
PRINT(a+i);
printf("\n");

答案

参考答案:1 2 3 ok!

解析: 本题主要考查了printf函数用在了宏替换中。宏替换不是函数调用,只是一种简单的字符替代。所以本题中PRINT(a+i)展开为:printf(“%d\t”,(int) (a+i)),当i=0时,输出1;当i=1时,输出2;当i=2时;输出3;for循环结束后输出ok!。

完形填空
In one's life, one usually has little understanding of oneself. When you succeed, you may be very proud. When you    __you may lose heart. If you don't get a thorough understanding of yourself, you may miss lots of       in life.
To get a thorough understanding of yourself is to know_     about yourself. You may realize your strong points and weak_     .You may hope for a wonderful future, but be sure not to expect too much because not all dreams can be      . You may be confident enough to meet challenges, but first you should know_      .
To get a thorough understanding of yourself needs self-appreciation. Maybe you think you are not a tall tree_     just small grass, but as long as you get full confidence, you are sure to face any trouble.
To get a thorough understanding of yourself also means to_   yourself.
When you are angry, find a quiet place so that you won't be hurt. When you
are sad, tell your friends about it to _    the mood(心情) into a good one. When you are tired, get a good sleep. If you don't take good care of yourself, you       _be able to stay away from illness.
So if you get a thorough understanding of yourself, and you will get a full control of yourself and find your life full of color.
小题1:
A.failB.winC.beatD.have
小题2:
A.lessons B.problemsC.chancesD.choose
小题3:
A.littleB.wellC.badlyD.worse
小题4:
A.one B.ones C.itD.those
小题5:
A.realizedB.rememberedC.repliedD.receive
小题6:
A.where to do B.when to doC.what to doD.how to do
小题7:
A.orB.butC.andD.if
小题8:
A.take afterB.run afterC.look afterD.see after
小题9:
A.changeB.cutC.throwD.show
小题10:
A.willB.won'tC.needD.may
多项选择题 案例分析题