问题 单项选择题

执行下列命令后,显示的结果是( )。
X=50
Y=100
Z=“X+Y”
50+&Z

A) 50+&Z
B) 50+X+Y
C) 200
D) 数据类型不匹配

答案

参考答案:C

解析: “&”是一个宏替换函数,用来替换字符型变量中的数据。题中X、Y都为数值型数据,Z为字符型变量,通过&替换后,其结果为X+Y,转换是一个数值型数据,所以此表达式的最后结果是一个数值表达式的运算结果。

阅读理解
阅读理解。
     In a New York street, a small truck hit a big tree. The truck was full of glasses and they were all
 broken. The driver came out of the truck and looked at the broken glasses. He was very sad and people
  in the street felt sorry for him. Then an old man walked over to the driver. He looked at him for a few
 minutes and said, "My poor boy! I think you must pay a lot for this." "Yes," was the sad answer.
     "Well, well," said the old man, "hold out your hat, here's some money for you, and I can say that some
  of these people will give you a helping hand, too." Then he walked away.
     The driver held out his hat and over a hundred people came and put their money in it. At last, the driver
  took out a bag and put all the money in it. Then he looked at the people and said, "Well, thank you very
 much. But you didn't know that the old man is the owner of the truck. I'm driving and making money for
 him."
1. What did the truck hit?   
    A. An old man.      
    B. A big tree.    
    C. Some glasses.    
    D. A big hat.
2. How did the driver feel when he looked at the broken glasses?
    A. Afraid and excited.    
    B. Pleased and frightened.  
    C. Unhappy and worried.  
    D. Surprised and happy.
3. Why did people give the driver money?
    A. Because they felt sorry for him.          
    B. Because the knew the old man.
    C. Because they wanted to help the old man.  
    D. Because they were the driver's friends
4. From the passage we know that _____ .
    A. The old gave the young man a hat  
    B. The old man was the driver's father
    C. The driver became rich        
    D. The driver had to give the money to the old man
问答题