题目内容:
在窗体上画一个名称为Co mmand1的命令按钮,再画两个名称分别为Labell、Label2的标签,然后编写如下程序代码:Private X As IntegerPrivate Sub Co mmand1_Click()X=5:Y =3Call proc(x,y)Labell .Caption =xLabel2.Caption =yEnd SubPrivate Sub proc(a As Integer ,ByVal b As Integer)X=a*aY =b +bEnd Sub程序运行后,单击命令按钮,则两个标签中显示的内容分别是( )。A.25和3
B.5和3
C.25和6
D.5和6
参考答案:
答案解析: