问题 填空题

子程序通常分为两类:【 】和函数,前者是命令的抽象,后者是为了求值。

答案

参考答案:过程

解析:当程序之间发生调用关系时,调用命令所在的代码段被称为主程序,被调用的代码段被称为子程序。子程序是对功能的抽象,可分为过程和函数两类,两者的区别是函数是通过函数名来返回值的,而过程只能通过形式参数或对全局变量进行修改以返回值。

阅读理解

阅读理解。把答案的编号填在左边的括号内。

       Tom goes to see his grandparents with his father. On the train Tom often puts his head out of the

window. His father says, “Tom, don’t put your head out of the window.” But Tom goes on putting

his head out of the window.       

       His father takes Tom’s hat quietly, hides it behind his back and says to Tom, “You see, your

hat is gone.” Tom is afraid. His father says, “Well, whistle(吹口哨)once. Maybe your hat will

come back.” Tom whistles. His father puts the hat on Tom’s head quickly. “Oh! It’s wonderful!” Tom laughs and says. He quickly takes his father’s hat and throws it out of the window. “Now it’s

your turn to whistle, Dad!” he says happily.

1. Tom goes to see his grandparents with his father             .

A. by bus        

B. by train      

C. by plane          

D. by ship

2. Tom often puts             out of the window.

A. his hat      

B. his father’s hat  

C. his head    

D. his father’s head

3.               and his hat is on his head.

A. Tom whistles                  

B. His father whistles  

C. Both of them whistle                

D. The conductor(列车员) whistles

4. Tom takes his father’s hat and             .

A. hides it behind his back    

B. throws it out of the window  

C. puts it under his seat                

D. puts it n his own head

5. At last Tom’s father’s hat               .

A. is on Tom’s head            

B. is on his father’s head  

C. will come back                      

D. is gone  

问答题