问题
单项选择题
执行下列命令后,显示的结果是 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,转换是一个数值型数据,所以此表达式的最后结果是一个数值表达式的运算结果。
执行下列命令后,显示的结果是 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,转换是一个数值型数据,所以此表达式的最后结果是一个数值表达式的运算结果。
完形填空。 | ||||
Joe was driving home on a country road one winter evening. He spent several months looking for a new 1 since the factory he had worked in closed. It was a lonely road. Not many people had a reason to be on it 2 they were leaving. He almost didn't see a small car 3 at the side of the road. He thought the driver might need help, so he pulled up in front of the car and got out. An old lady was in the car. At first she was worried. "He didn't look 4 . He looked poor and hungry," she thought. He could see that she was 5 . He said, "I'm here to help you, madam." All the lady had was a flat tire (瘪的轮胎). While Joe was 6 , the lady opened the window and began to talk to him. She told him that she couldn't 7 him enough for helping her in such a situation. Soon Joe was able to change the tire. She asked how much she owed (欠) him. Joe 8 thought about money. He told her that if she really wanted to pay him back,the next time she saw someone who needed help, she could 9 that person the help. A few miles down the road,the old lady saw a small restaurant. She decided to eat something and 10 herself up before she finished her trip home. The waitress looked young and poor. After she finished her meal, she handed a 100-dollar bill to her. When the waitress went to get her change, the lady left without being 11 . The waitress then found some words on a piece of paper. "You don't owe me a thing. Someone once helped me, the way I'm helping you. If you really want to pay me back, here's what you 12 . Don't let the chain (链) of love end with you." | ||||
|