问题 单项选择题

以下能正确定义二维数组的是( )。

A.int a[][3];

B.int a[][3]={2*3};

C.int a[][3]={};

D.int a[2][3]={{1},{2},{3,4}};

答案

参考答案:B

解析: 选项A中省略了第1维的长度,但没有指定初始化列表,系统无法确定第1维的长度,故编译不会通过;C语言中,初始化列表不能为空,所以选项C错误;选项D中定义了一个2行3列的数组,而在初始化列表中包含了3个大括号,即初始化3行值,编译不会通过,故选项D错误。所以,4个选项中选项B符合题意。

阅读理解

阅读理解。

Dear friend,

     I am an American girl. My name is Sarah King. I am thirteen. I have two brothers.

They are middle school students, too. We go to school from Monday to Friday. We

don't have any classes on Saturdays or Sundays. My father and mother are teachers.

They always say China is great. I like reading. I am reading a Chinese storybook. I

think it's very interesting. My brothers and I like football and basketball. What sports

do you like?

     Let's be good pen pals, OK?  Please write to me soon.

                                                                                                                                         

                                                                                                                        Yours ,

                                                                                                                    Sarah King

l.Why does Sarah write this letter?                 

A.Because she wants to come to China.

B.Because she wants to make a pen pal in China.

C.Because she likes reading Chinese storybooks.

2.How many people are there in Sarah's family?

A.Three.

B.Four.

C.Five.

3.When do they go to school?

A.They go to school from Sunday to Friday.

B.They go to school on weekends.

C.They go to school from Monday to Friday.

4.What is Sarah doing recently(最近)?

A.Reading a Chinese storybook.

B.Playing soccer.

C.Playing basketball.

5.What do Sarah and her brothers like?

A.Storybooks.

B.Soccer and basketball.

C.Pen pals.

单项选择题