单项选择题
在窗体上画一个名称为Text1的文本框和一个名称为Command1的命令按钮,然后编写如下事件过程: Private Sub Command1_Click()
Dim array1(10, 10) As Integer
Dim i As Integer, j As Integer
For i = 1 To 3
for j = 2 To 4
array1(i, j) = i + j
next j
next i
Text1.Text = arrry1(2, 3) + array(3, 4)
End Sub
程序运行后,单击命令按钮,在文本框中显示的值是()
A.12
B.13
C.14
D.15
点击查看答案
相关考题
-
单项选择题
下列语句中,a是一个数组,则使用正确的是()
A.Option Base2
B.Redim a
C.Erase a
D.a=Array() -
单项选择题
以下能在窗体Form1的标题栏中显示"Visual Basic窗体"的语句是()。
A、Form1.Name="VisualBasic窗体"
B、Form1.Title="VisualBasic窗体"
C、Form1.Caption="VisualBasic窗体"
D、Form1.Text="VisualBasic窗体" -
单项选择题
下列程序中,第一个Do语句共执行了()次循环。 Dim i As Integer, j As Integer i = 1 Do j = 1 Do Sum = Sum + j j = j + 2 Print j; Loop Until j > 3 i = i + 2 Loop Until i > 10 Print Sum
A.10
B.20
C.5
D.7
