单项选择题

在窗体上画一个名称为Command1的命令按钮,然后编写如下事件过程:
Private Sub Command1_Click( )
  x = 5: y = 2
  Call sub1((x), y)
  Print x; y
End Sub
Private Sub sub1(m, n)
  t = m : m = n : n = t
End Sub
程序运行后,单击命令按钮,则窗体上显示的内容是________。

A.2 5
B.5 4
C.1 4
D.5 5
<上一题 目录 下一题>
热门 试题

单项选择题
在窗体上画一个名称为Command1的命令按钮,然后编写如下事件过程: Private Sub Command1_Click( ) Dim a As Integer, b As Integer, c As Integer a = 1: b = 2: c = 3 Print fun2(c, b, a) End Sub Private Function fun1(x As Integer, y As Integer, z As Integer) fun1 = 2 * x + y + 3 * z End Function Private Function fun2(x As Integer, y As Integer, z As Integer) fun2 = fun1(z, x, y)+ x End Function 程序运行后,单击命令按钮,则窗体上显示的内容是________。
A.7
B.14
C.17
D.30
单项选择题
窗体上画了两个按钮按钮Command1和Command2,有如下程序: Private Sub Command1_Click( ) Print Visual ; End Sub Private Sub Command2_Click( ) Print Basic ; End Sub Private Sub Form_Load( ) Command2.Cancel = True Command1.Cancel = True End Sub 执行程序后,按键盘Cancel键,在窗体上输出结果是________。
A.Basic
B.Visual
C.Cancel
D.True
相关试题
  • 以下程序的功能是:程序运行后,单击命令按...
  • List1.ListCount
  • L1
  • BCD
  • 单文档界面@SD