问题 单项选择题

若有以下定义: int a[] ={1,2,3,4,5,6,7}; char c1='b',C2='2'; 则数值不为2的表达式是( )。

A.a[1]

B.'d'-c1

C.a['3'-c2]

D.c2-0

答案

参考答案:D

解析: 本题考查数组的定义、初始化及其引用,以及对字符ASCII码值的熟悉程度。解本题的关键在于熟悉字符的ASCII码值。字符在进行数学运算时取其ASCII码值,其中'b'的ASCII码值为98,'d'的ASCII码值为100,字符'2'的ASCII码值为 50。根据以上知识,可知选项D中表达式“c2-0”的值为50。

阅读理解

阅读理解。

    Earthquakes happen without warning (前兆). They can happen any time of a day, at any point during the

year. When an earthquake is happening, you should know what you should do or not do.

    Do NOT go outside.You could get injured from falling glass or parts of buildings. If you are outside, stay

away from buildings and power lines (输电线).

    Stay under a desk, table, or other strong furniture. Hold on to it. Or stay in a corner of the building. Cover

your face and head with your arms and cover your mouth with a towel or clothing. Stay inside until shaking

stops and it is safe to go outside.

    Keep away from windows,pictures or advertisements on the wall or the building,and anything else that

could fall and hurt you. Most people get injured by falling things during an earthquake, not by the shaking

itself.

    Also keep away from a fire. You could fall down and burn yourself on the fire.

    If you are driving when an earthquake happens, stop the car if it's safe. Stay inside your car until the

earthquake stops, and don't drive near bridges. Try not to stop by power lines or trees. These could fall

and hurt you.

1. It isn't safe for you to            while the earthquake is happening. [ ]

A. run out of the building

B. stay in a corner of the building

C. cover your head with your arms

D. cover your mouth with a towel

2. From this passage, we know            .[ ]

A. many people fear earthquakes

B. earthquakes maybe happen at any time

C. we can't save ourselves in an earthquake

D. people never get injured in earthquakes

3. The best title for this passage should be "           ". [ ]

A. How Earthquakes Happen

B. How to Drive a Car

C. What We Should Do in Earthquakes

D. Why Earthquakes Happen

单项选择题