问题 单项选择题

下列说法不正确的是( )

A.调用函数时,实参可以是表达式

B.调用函数时,实参与形参可以共用内存单元

C.调用函数时,将实参的值复制给形参,使实参变量和形参变量在数值上相等

D.调用函数时,实参与形参的类型必须一致

答案

参考答案:B

解析: 本题考查函数调用的基本概念。调用函数时,实参的形式可以是具体的数值,也可以是表达式。实参将数值或表达式的值传递给形参,因而两者的类型必须保持一致;形参在运算过程中会发生改变,但不一定会影响到实参值,所以可知两者不共用内存单元。

填空题

阅读短文,根据短文内容补全单词 (首字母已给出),将答案填写在短文下面的答题处。

       Last month, a   1    celebrating his sixteenth birthday, Jed's parents sent him to England for further study.

They told him, "You should always remember to t   2    of other people first, then you will be a whole person."

One day, he was walking in the street, suddenly he heard a big noise. He ran to where the noise c   3    from.  

When he got there, he saw a small car had knocked into the side of a truck. Someone in the car is shouting 

"Help! Help!". The street is q   4   . He looked around and found there were no people there. Q   5    he put down

his bag and tried his best to open the car door. But he couldn't. He ran b   6    down the street to the n   7    

telephone stand (电话亭) as fast as he could to call the policeman and the doctor. Soon the policeman and the 

doctor arrived. With their help, he got the car door open and carried the man o   8   . The man looked worried.

"Don't worry. You will be all right in a week or t   9   ." said Jed. The man held  Jed's hands and said, "You are 

really a good young man." Jed was very happy to hear it, he knew h  10    to be a whole person at that time.  

1.                  2.                   3.                    4.                   5.                 

6.                  7.                   8.                    9.                   10.             

论述题