问题 填空题

下列程序段的运行结果是______。
char str[]="ABCD",*p=str;
printf("%d\n",*(p+3));

答案

参考答案:68

解析: 本题考查如何用指针引用数组元素。本题先定义了一个指向字符型数组str的指针p,指针p指向数组str的首地址,p+3将指针指向str[3],*(p+3)指的是字符“D”,输出时是以“%d”格式输出的,即输出其相应ASCII码值68。

阅读理解

阅读下面短文并回答问题,然后将答案写在横线上(请注意问题后的词数要求)。

     What is the hottest topic at your school recently? In Hangzhou Yongjin Middle School, it's money.

     The school held an activity called "making money" last weekend. About 200 Junior 1 and Junior 2

students were divided into 30 teams. They went out ________________. What did they choose to sell?

Some sold newspapers;some chose bottled water;some sold environmentally friendly shopping bags

and bamboo baskets.

     Hu Qing's team decided to sell some useful books in front of the Children Activity Center. They thought parents would like to buy the books for their children. But unfortunately, they met urban management

officers. The officers asked them to leave. "We played hideandseek with the officers for the whole

morning, " said Hu. "Finally we had to give up."

     Wang Bing and her team sold ice cream in a square. They didn't meet any officers. But few people

were interested in what they were selling. The team then put up a board saying "For Country Kids". It

worked. More people came to their stall(小摊). A foreigner even gave them 100 yuan. "He didn' t want

any change. He said he wanted to help the children, " said Wang. "We were touched." Later that day they gave the 100 yuan and more to the "Project Hope" office.

     Meng Zhaoxiang and his team were luckier. They sold all their cakes in four hours, spending 39.5 yuan and getting back 80 yuan. They made 40.5 yuan. "It was not easy to make the money, " said Meng.

"Some people just looked. Others just tasted but didn't buy. Now I know how hard it is for our parents

to make money we need to lead happy lives. "

1. What is the main idea of the text?(no more than 10 words)

________________________________________________________________________

2. Fill in the blank in Paragraph 2 with proper words. (no more than 10 words)

________________________________________________________________________

3. What does the word "It" (Line 4, Paragraph 4) refer to? (no more than 20 words)

________________________________________________________________________

4. What is the writer's attitude towards the activity? (no more than 10 words)

________________________________________________________________________

5. What is the good of holding this activity?(no more than 10 words)

________________________________________________________________________

单项选择题