问题 单项选择题

既不能被上级例程访问,也不能被下级例程访问的变量为( )。

A.私有变量

B.局部变量

C.字段变量

D.全局变量

答案

参考答案:B

解析: 在程序中直接使用(没有通过PUBLIC和LOCAL命令事先声明)而由系统自动隐含建立的变量都是私有变量。私有变量的作用域是建立它的模块及其下属的各层模块。局部变量只能在建立它的模块中使用,不能在上层或下层模块中使用。当建立它的模块程序运行结束时,局部变量自动释放,局部变量用LOCAL命令建立。全局变量是指在任何模块中都可使用的变量,又称为公共变量。全局变量要先建立后使用,全局变量可用PUBLIC命令建立。

阅读理解

任务型阅读。

Dear Mona,      

     China is great! My school is in Beijing. It's big and new. I have some Chinese friends. They can speak English very well. They help me learn  Chinese and now I can spea k a  little  Chinese. At school we are

busy. My favorite subject is history. I join the history club on Mondays and Thurs-days. Chinese history

is really interesting! At school my favorite teacher  is  Mr. Li. He's my  math teacher and he can play the

drums! From Monday to Friday I have six classes  every day. On Saturdays and Sundays I don't go to

school.        

     I'm at home today. I watch TV, read books  and write to you. It's nine o'clock. I  must (必须) go to

bed. I usually go to bed at nine thirty onweekends. 

     Please write and tell me about your club in  America. Come and see Beijing in July !        

                                                                                                                                   Love,             

                                                                                                                                   Jane

阅读短文,回答下列问题。

1. Where is Jane's school?

__________________________________

2. What club does Jane join on Mondays and Thursdays?

_________________________________________

3. Can Jane's friends speak English?

________________________________________

4. Can Jane's math teacher play the drums?

_______________________________________

5. Where is Mona?

___________________________________________

单项选择题