问题 单项选择题

设工程文件包含两个窗体文件Form1. frm、Form2. frm及一个标准模块文件Module1. bas。两个窗体上分别只有一个名称为Command1的命令按钮。
Form1的代码如下:
Public x As Integer
Private Sub Form_Load( )
x=1
y=5
End Sub
Private Sub Command1_Click( )
Form2. Show
End Sub
Private Sub Command1_Cliek( )
Print Form1. x, y
End Sub
Module1的代码如下:
Public y As Integer
运行以上程序,单击Form1的命令按钮Command1,则显示Form2;再单击Form2上的命令按钮Command1,则窗体上显示的是( )。

A) 1 5
B) 0 5
C) 0 0 D) 程序有错

答案

参考答案:A

解析: 在Form1窗体模块中x被定义为全局变量,这使得它的值可以在其他模块中通过“过程名. 变量名”的形式被引用。而变量y在标准模块中被定义为全局变量,则它可以在工程的每个模块,每个过程中使用。因此程序运行时,x赋值为1,y赋值为5,它们的值都可以在Form2中引用。

单项选择题
单项选择题

About a week ago, when I was playing basketball at our local park, I noticed a small group of boys picking on a smaller, skinnier boy. They were (21) him names and even pushed him to the ground and kicked dirt in his face. (22) I saw that, I walked over to the group.
I stepped (23) them and the smaller boy, and asked them politely what this boy had done worthy of (24) they were doing to him. One of the boys replied, "He’s weird. " At that, I asked one of the boys if he thought his friend was weird, and the (25) was "No." So, I asked another boy what the word "weird" (26) , and he said, "Different." That was my cue (暗示). I told them that everyone is (27) , and that they all looked just as different to the other boy as he did to them. They all stood (28) for a moment, and then the most amazing thing happened. One of the boys helped the small boy off the ground and then said sorry to him. He (29) to let him play with them.
I thanked the boy for being so (30) As I looked around, I realized that there were dozens of other people at the park (31) no one else had stopped to help this boy. I felt happy that the boy was p enough to stand up against his friends to (32) someone in need, but I felt sad that (33) else had even taken a second look.
I hope that my action helped them (34) that they could have made a difference with a little (35) , and maybe next time they will be the ones who choose to help.

Ⅱ. 完形填空

/Close
通过下面短文,掌握其大意,然后再各题所给的四个选项(A、B、C和D)中选出一个最佳选项。

A.someone

B.anyone

C.no one

D.everyone