单项选择题

Command1_Click()事件代码如下: Private Sub Command1_Click() Dim x As Integer, Y As Integer x = 6 : Y : 8 Call ABC(X, Y) Print X; Y End Sub Private Sub ABC(ByVal X As Integer,Y As Integer) X = X + 4 Y = Y = 2 End Sub 事件发生后,X和Y的值分别为 ______。

A.6, 8
B.10, 10
C.10, 8
D.6, 10
<上一题 目录 下一题>
热门 试题

单项选择题
执行下面这段程序后,单击命令按钮,窗体中输出结果是 ______。 Private Sub Command1_Click() a=1 : b=4 : c = 9 : d = 5 If a < b Then If c<d Then x=True Else If a<c Then x=False Else x=True End If End If End If Print Val(x) End Sub
A.True
B.False
C.0
D.1
单项选择题
有如下程序,运行时从键盘输入3,输出结果是 ______。 Private Sub Command1_Click() a=InputBox( 请输入一个数字: ) Select Case a Case Is>2 b=a+1 Case Is>3 b=a+2 Case Is>4 b=a+3 Case Is>5 b=a+4 End Select Print a + b End Sub
A.
8

B.
7

C.
6 9

相关试题
  • 在Visual Basic中,实参传递给形参有两种...
  • 下列程序段的功能是,单击命令按钮后,将随...
  • 下列程序段的作用是控制窗体的显示与隐藏。...
  • 下列程序的功能是,单击命令按钮时随机生成...
  • 运行下列程序,最后在窗体中输出 【2】 ...