问题 单项选择题

设有定义:char p[]={’1’, ’2’, ’3’}, *q=p; ,以下不能计算出一个char型数据所占字节数的表达式是______。

A.sizeof(p)

B.sizeof(char)

C.sizeof(*q)

D.sizeof(p[0])

答案

参考答案:A

解析: 根据题目中的定义,可以知道sizeof(p)计算的是数组p中所有元素所占用的字节数,而不是char型数据所占字节数。

阅读理解

阅读理解。

     Many people are interested in traveling. Here are three of the greatest benefits (益处) of traveling

abroad.

     1. Expands (扩大) your view of yourself and the world

     Traveling opens your eyes to the world. Traveling increases your knowledge. Different cultures have

different ideas of the world. This is expressed (表达)i n their food,t heir clothes, their homes and so many of the other details of their lives, Traveling to a new country makes you face a lot of new things. (A) It

also helps you to see that people in other countries that look and sound different are real.

     2. Allows you to relax

     Our normal lives are filled with pressure at times. Pressure is bad for our health.A good trip abroad

helps us collect our thoughts and relax. We can see some more positive things and forget our problems

at least for a while. This often gives us the chance to clear our minds.

     3. Provides you with greater creativity (创造力)

     Getting out. f our old rules gives us the opportunity to use our minds in new ways. We get confidence (自信) by facing the small challenges during the traveling. This cheers us up! It makes us feel more alive

and better able to deal with whatever life throws at us next.

     (B) Being in new places gives us the chance to exercise our creativity. It opens up our minds to see

new solutions.

任务一:根据短文内容,回答下列问题。

1. What can tell you that different cultures have different views of the world?

    __________________________________________________________________

2. How do we get confidence during the traveling?

    __________________________________________________________________

任务二:将划线句子翻译成汉语。

3. (A)_______________________________________________________________

4. (B)_______________________________________________________________

任务三:请为短文拟一个适当的标题。

5. __________________________________________________________________

判断题