题目内容:
在窗体上画一个命令按钮,其名称为Command1,然后编写如下程序:Function Func(ByVal x As Integer,Y As Integer)
Y=X * v
If Y>0 Then
Func=x
Else
Func=Y
End If
End Function
Private Sub Command i Click()
Dim a As Integer,b As Integer
a=3
b=4
C=Func(a,B.
Print“a=”:a
Print“b=”:b
Print“c=”:c
End Sub
程序运行后,单击命令按钮,其输出结果是 ( ) A.a=3
b=12
c=3
B.a=3
b=4
c=3
C.a=3
b=4
c=12
D.a=3
b=12
c=12
参考答案:
答案解析: