问题 单项选择题

对于下列定义,不正确的叙述是( )。 union data { int a;char b;double c; }x=y;

A.变量x所占内存的长度等于成员c的长度

B.变量x的地址和它的各成员地址都是相同的

C.可以在定义时对x初始化

D.不能对变量x赋值,故x=y非法

答案

参考答案:C

解析: 本题主要考查的知识点是联合体的内存使用。联合体所占用的内存空间为最长的成员所占用的空间,各个成员分量全部是从低地址方向开始使用内存单元。不能在定义共用体变量时对它初始化。

阅读理解

阅读短文,选择正确答案。

                                                               At the Train Station              

      Henry is going to Tianjin. He is at the train station now. Now it's 8 o'clock. Henry goes to Platform 13 and 

there Train Number 59 to Changchun is leaving. Train Number 96 to Guangzhou leaves at 8: 20. The next one 

is Henry's train, Train Number 88. It leaves ten minutes after Train Number 96.

1. —Where is Henry?  —                 .[ ]

A. He is in Tianjin                                     

B. He is at the train station              

C. He is at the bus station                            

D. He is in Changchun

2. When does Train Number 96 leave?  [ ]

A. It leaves at 8: 41                                                 

B. It leaves at 8: 20                   

C. It leaves at 8: 00                                                 

D. It leaves at 8: 21

3.           is leaving at 8 o'clock.[ ]

A. Train Number 88                                          

B. Train Number 59                  

C. Train Number 96                                            

D. Train Number 20 

4. How many trains are there at Platform 13?   [ ]

A. One          

B. Two          

C. Three          

D. Four

5. When does Train Number 88 leave?[ ]

A. It leaves at 8: 00                                                

B. It leaves at 8: 20                   

C. It leaves at 8: 30                                                

D. It leaves at 8: 40  

单项选择题