问题 单项选择题

有以下程序:
#include<stdio.h>
main()
char c1, c2, c3, c4, c5, c6;
scanf("%c%c%c%C", &c1, &c2, &c3, &c4);
c5=getchar(); c6=getchar();
putchar(c1); putehar(c2);
printf("%c%c\n", c5, c6);

程序运行后,若从键盘输入(从第1列开始)
123<回车>
45678<回车>
则输出结果是( )。

A.1267

B.1256

C.1278

D.1245

答案

参考答案:D

解析: scanf函数读取的是char型数据,所以回车时输入的换行符也是有效字符。于是c1,c2,c3,c4的内容分别是1,2,3,’\n’。

阅读理解

阅读理解。

    Tom is five years old. He has no brothers or sisters. He is a lovely boy. He doesn't go to school because

he is too young. He likes to play with other children in the small park every day.

     The park is near his building. In the park there are interesting things to see and play with.

     Tom's parents love him very much. They often buy him nice things. This time, his mother buys some

new clothes for him. The clothes are expensive and nice. Tom is very happy to wear them. 

     "Mum, can I go out and play with my friends? I want them to see my new clothes," asks Tom. "All

right, but please keep your clothes clean," says Mum. "I am going to do some cooking. We will have supper

after your father comes back." At about six, his father comes back from work. And Tom goes home for

supper.

     "Why do you have much earth (泥土) on your clothes?" asks his mother.

     "Because I have some falls (摔跤)," answers Tom. "You should not make the nice clothes dirty", Mother

says.

     "I'm sorry, Mum", says Tom, "But I have no time to take off my clothes when I fall."

1. Tom ______. [ ]

A. is six years old

B. is a student

C. is five years old

D. has a brother and a sister

2. How do you know Tom's parents love him very much? [ ]

A. They let him play with other small children.

B. They let watch TV all day.

C. They often buys some nice things for him.

D. Tom doesn't go to school.

3. How does Tom make his clothes dirty? [ ]

A. Hi friends make his clothes dirty.

B. He has some falls.

B. He doesn't like the new clothes.

D. He takes off his new clothes and puts them on the dirty earth.

4. The word "lovely" means ______. [ ]

A. 淘气的

B. 可爱的

C. 好看的

D. 喜爱的

5. Which is not right? [ ]

A. Tom doesn't go to school.

B. There is a small park near his home.

C. Before Tom falls, he takes off his clothes.

D. Tom often goes out to play with his friends.

选择题