1. [单选题]单击命令按钮执行下列程序,其输出结果是。 Private Sub Commana1_Click() Dim a As Integer,b As Integer,c As Integer a = 3 b = 4 c = 5 Print SecProc(c,b,a) End Sub Function FirProc(x As Integer,y As Integer,z As Integer) FirProc = 2 * x + y + 3 * z End Function Function SecProc(x As Integer,y As Integer,z As Integer) SecProc = FirProc(z,x,y) + x End Function
A. 20
B. 22
C. 28
D. 30
2. [单选题]假定时钟控件的Interval属性为1000,Enabled属性为True,并且有下面的事件过程,计算机将发出( )beep声。 Sub Timer1_Timer() Fori=1 to 10 Beep Nexti End Sub
A. 1000次
B. 10000次
C. 10次
D. 以上都不对
3. [单选题]在窗体上有一个命令按钮Commandl,编写事件代码如下:Private Sub Commandl Click( ) Dim X As Integer,Y As Integer x=12:y=32 Call Proc(x,Y) Debug.Print X;Y End Sub Public Sub proc(n As Integer,ByVal in As Integer) n=n Mod 10 m=m Mod 1O End Sub 打开窗体运行后,单击命令按钮,立即窗口上输出的结果是( )。
A. 232
B. 123
C. 22
D. 1232