问题 单项选择题

以下关于变量作用域的叙述中,正确的是______。

A) 窗体中凡被声明为Private的变量只能在某个指定的过程中使用
B) 全局变量必须在标准模块中声明
C) 模块级变量只能用Private关键字声明
D) Static类型变量的作用域是它所在的窗体或模块文件

答案

参考答案:B

解析: 在过程(事件过程或通用过程)内定义的变量叫做局部变量,其作用域是它所在的过程,所以答案A) 错误;全局变量可用于工程的每个模块、每个过程。全局变量必须用Public(或Global)语句声明,不能用Dim语句声明,更不能用Private语句声明;同时,全局变量只能在标准模块中声明,不能在过程或窗体模块中声明,所以答案B) 正确;模块级变量用Private或Dim在模块中声明,所以C) 答案错误;Static语句的格式与Dim语句完全一样,但Static语句只能出现在事件过程、Suh过程或Function过程中,所以答案D) 错误。

完形填空

第Ⅱ卷(非选择题:共25分)

I.完成句子: 根据首字母或汉语提示填入所缺的词,每空一词. ( 每空0.5分,满分15分)

76、It is ______(明显的) that our teacher is very disappointed. Can’t you see it from her face?

77、Please f_____ me for being late. The traffic at this time is very heavy.

78、It’s important to eat a ______ (均衡的) diet.

79、She is starving herself to lose w_______.

80、Jim’s father didn’t ______ (允许) him to join the school football team

81、Nobody can e_____ without air or water.

82、Clouds are masses of very small drops of water that ______ (漂浮) in the sky.

83、Smoking is h_______ to people’s health.

84、The patient is ______ (稍微地) better today.

85、His house is ________ (包围、环绕) by a big tree.

86、The building was built ______  _____  ___ (为了纪念) that educator.

87、The little girl likes to _____  ______ (打扮、装扮) in her mother’s clothes.

88、I waited for a long time, but he didn’t ______  _____. (出现)

89、It’s bad manners to ______  _______(说谎).

90、Perhaps with a discount and a new sign he could _____  ____ (赢回)his customers.

91、_____  _____  _______ (说实话), I don’t think we have a chance of winning.

92、He met Tom in the street ____  ______ (意外地)yesterday.

93、----- I’m too nervous.

------______  ______. (振作起来) I’m sure you’ll make it.

94、Tom, _____  ______(而不是)his two younger sisters, was to be punished for the wrong decision.

单项选择题