题目内容:
在窗体上画一个名称为Command1的命令按钮,再画两个名称分别为Labell、Label2的标签,然后编写如下程序代码:Private X As Integer
Private Sub Command l_Click()
X=5:Y=3
Call proc(X,Y)
Labell.Caption=X
Label2.Caption=Y
End Sub
Private Sub proc(ByVal a As Integer,ByVal b As Integer)
X=a*a
Y=b-I-b
End Sub
程序运行后,单击命令按钮,由两个标签中显示的内容分别是( ) A.5和3
B.25和3
C.25和6
D.5和6
参考答案:
答案解析: