问题 单项选择题

下列变量声明合法的是( )。

A.short a=1.4e-1;

B.double b=1+3e2.8;

C.long do=0xfdaL;

D.float2_aaa=1e-3;

答案

参考答案:A

解析: 解答本题需了解3个知识点:①标识符是由字母、数字或下画线组成,并且它的第一个字符必须是字母或者下画线;②do是 C语言中的一个关键字,不能再用做变量名和函数名;②C语言规定指数形式的实型常量e或E后面的指数必须是整数。

完形填空
完形填空。
     Welcome to my QQ-zone (空间). This is a photo    1    my family. I have a    2    family. The middle-aged (中年的) man and woman are my parents. They are doctors. They work in the same   3    . The old man and the old woman are my grandparents. They are old and don't work. They are    4    home now. They like flowers (花) and birds (鸟). The young man is my uncle. He is my father's    5   . He    6    in No. 8 Middle School. He is a good teacher. His students like    7    very much. He often helps me    8    my English. The little girl    9    is my sister, Li Ying. She is only three years old. Do you know the boy? Guess!    10    me. I have a happy family.

( )1. A. at      
( )2. A. little   
( )3 A. class     
( )4. A. at       
( )5. A. son      
( )6. A. gives    
( )7. A. his      
( )8. A. for      
( )9. A. in yellow
( )10. A. Its     

B. of         
B. old       
B. farm      
B. on        
B. daughter  
B. comes     
B. him                  
B. at        
B. on yellow 
B. It      
C. in            
C. big           
C. hospital      
C. to             
C. sister      
C. studies        
C. he                       
C. with          
C. in a yellow   
C. It’s     
D. with             
D. small             
D. school          
D. of                  
D. brother         
D. teaches          
D. her                
D. to                 
D. on a yellow      
D. He         
单项选择题