单选题 VB
题号 #145340

设有如下通用过程:
Public Function f(x As Integer)
Dim y As Integer
x = 20
y = 2
f = x * y
End Function
在窗体上画一个名称为Command1的命令按钮,然后编写如下事件过程:
Private Sub Command1_Click()
Static x As Integer
x = 10
y=5
y = f(x)
 Print x; y
End Sub
程序运行后,如果单击命令按钮,则在窗体上显示的内容是(  )。

进入在线模考

参考答案

C

答案解析

暂无解析

你可能感兴趣的试题

A.Private Sub Command1_Click()
   Label3.Caption = Str(Val(Label1.Caption )*Val( Label2.Caption))
  End Sub
B.Private Sub Command1_Click()
   Label3.Caption = HScroll1.Value * HScroll2.Value
  End Sub
C.Private Sub Command1_Click()
   Label3.Caption = HScroll1 * HScroll2
  End Sub
D.Private Sub Command1_Click()
   Label3.Caption = HScroll1. Text * HScroll2.Text
  End Sub
找试题 · 找答案 · 找资料 在线模考