问题 填空题

在窗体上画一个命令按钮,然后编写如下程序: (假定变量x是一个窗体级变量)
Dim x As Integer
Sub inc(a As Integer)
x=x+a
End Sub
Private Sub Command1_Click()
inc 2
inc 3
inc 4
Print x;
End Sub
程序执行后,单击Command1命令按钮,输出的结果是 【11】

答案

参考答案:I

解析:[评析] inc函数每执行一次就向x上累加一次传入的参数,所以最后x的值为:2+3+4=9。

单项选择题

阅读下面短文,从短文后各题所给的四个选项(A、B、C 和 D)中,选出可以填入空白处的最佳选项,并在答题卡上将该项涂黑。

                                    A Heroic Driver

Larry works with Transport Drivers. Inc. One morning in 2009. Larry was  41

along 165 north after delivering to one of his    42   . suddenly, he saw a car with its bright lights on.    43    he got closer, he found 44    vehicle upside down on the road. One more look and he noticed    45    shooting out from under the    46    vehicle. Larry pulled over, set the brake and    47   the fire extinguisher (灭火器). Two good bursts from the extinguisher and the fire was put out.

The man who had his bright lights on    48    and told Larry he had    49    an emergency call. They    50    heard a woman’s voice coming from the wrecked (毁坏的) vehicle.    51   the vehicle, they saw that a woman was trying to get out of the broken window. They told her to stay    52    until the emergency personnel arrived,    53    she thought the car was going to    54   . Larry told her that he had already put out the fire and she should not move    55    she injured her neck.

Once fire and emergency people arrive, Larry and the other man    56    and let them go to work. Then, Larry asked the    57    if he was needed or    58    to go. They let him and the other man go.

One thing is    59   —Larry went above and beyond the call of duty by getting so close to the burning vehicle! His    60    most likely saved the woman’s life.

58()

A.forbidden

B.ready

C.asked

D.free

选择题