问题 单项选择题

有以下程序 main(){int a=0,b=0;a=10: /* 给a赋值b=20: 给b赋值 */printf("a+b=%d\n",a+b);/*输出计算结果*/ }程序运行后的输出结果是【 】。

A.a+b=10

B.a+b=30

C.30

D.出错

答案

参考答案:A

解析:C语言规定,注释语句可以换行写,并且一个"/,c"和其后紧跟的第一个"*/"中间的部分是注释内容,并且注释部分的内容不参与程序的运行,因此,本题中没有执行"b=20;"这条语句,故本题的答案为选项A)。

阅读理解

阅读理解。

     An earthquake (地震) may happen at any time. It's best for us to know what to do, where to be

safe and who to contact during the earthquake. The following information will help you.

     Remember:

     Prepare your personal earthquake bag. Collect these items and keep them somewhere near you.

water food medicine mobile phone torch (手电筒) personal washing things blanket money

     Remember: Drop, Hide, Hold and Contact.

     Drop to the floor and protect your head and neck with your arms. Hide yourself beside something like

a table, a bed and so on. Hold the furniture so that you won't move away during the earthquake. Contact

family friends to tell them where you are.

     Remember: Never do these things.

     Stand close to the buildings (because they may fall on you. )

     Stand under the trees or signs ( because it's better for you to stand in an open space. )

     Go too close to the power lines (电线) ( because you may be badly hurt by electricity. )

1. The underlined word "contact" in the passage most probably means "_________ " in Chinese.

A. 联络

B. 求救

C. 接触

D. 帮助

2. According to the passage, how many items should be kept in your personal earthquake bag?

A. Six.

B. Seven.

C. Eight.

D. Nine.

3. We should hold the furniture so that _________.

A. we won't move away during the earthquake

B. we can hide under it

C. it can protect our heads and necks

D. we can protect the furniture

4. It is safer for you to stand _________ during the earthquake.

A. close to a building.

B. in an open space.

C. beside power lines.

D. under a tree

5. Which is the best title of this passage?

A. The Reasons of the Earthquake.

B. Different Kinds of Earthquakes.

C. The Personal Earthquake Bag.

D. It's Better to be Safe than Sorry.

问答题 简答题