问题 单项选择题

下面关于数组的初始化正确的是( )。

A.char str[ ]:{'a','b','c'}

B.char str[2]={'a','b','c'}

C.char str[2][3]={{'a','b',},{'c','d'},{'e','f'}}

D.char str( )={'a','b','c'}

答案

参考答案:A

解析:本题考查的是字符数组的初始化。选项B)中用3个元素初始化大小为2的数组,越界了;选项C)中应该是2行3列的数组,题中使用3行2列初始化;选项D)中数组合后应用方括号。

阅读理解

The apartments for sales,40 minutes’ walk to the gold coast beach, on the ground floor is a private patio(天井), fully fitted kitchen, resting room with feature fireplace and a second reception room which could be used as a dinning room or third downstairs bedroom. On the first floor are two double bedrooms, one of which leads onto a sunny terrace(阳台), fully tiled bathroom with bath and shower. The property is in excellent condition throughout and is ready to move straight into Sky TV, telephone and broadband are connected.

Status: Available                                 Price: EUR¢115,000

Telephone: 00351-981888988         Location: Mollina Malaga Province Spain

Apartment furnished for sale at an unbelievable price. The apartment is part of a small complex with swimming pool and a public resting-room with TV, relaxing area, changing areas, etc. The apartment is on the market fully furnished, air conditioning, with good environment to all divisions of the apartment. If you are thinking tapping into the rental market while the property is empty during the year, this property could be your best bet at the best possible price.

Number of Bedrooms: 2

Status: Available                                 Price: EUR¢147,000

Telephone: 00331-961777017                     Location: Sao Leiria Portugal

Nice villa for sale. The villa has 4 bedrooms and 4 bathrooms. Beach at walking distance. Outside there is a swimming pool. The villa is just outside inland coast in a small villa of 20 houses.

Status: Available                               Price: EUR¢340,000

Telephone: 04811-961999018                     Location: Inland Costal Area

小题1:The apartments in the first advertisement have the following advantages Except ________.

A.the rest room has a fire fireplace

B.the bathroom has bath and shower

C.the apartments are ready to move straight into

D.it has a public resting-room with TV小题2:If you want to buy an apartment with a public relaxing area, you should dial ________.

A.00351-981888988

B.00331-961777017

C.04811-961999018

D.05355-941445535小题3:What’s the meaning of the underlined part in the second advertisement?

A.Knocking into.

B.Putting into.

C.Taking advantages of.

D.Getting into.小题4:From the advertisements we can know the apartments ________.  

A.are in different areas

B.are in the same developing area

C.are of the same price

D.belong to the same developing company

单项选择题