在通用声明中给出Option Base 1语句,有定义语句“Dim a(3, -2 To 1, 5)”,则数组a包括()元素。
查看答案
在窗体上添加一个命令按钮Command1,然后编写如下程序:Private Sub Command1_Click()Dim i As Integer, j As IntegerDim a(10, 10) As IntegerFor i = 1 To 3For j = 1 To 3a(i, j) = (i - 1) * 3 + jPrint a(i, j);Next jPrintNext iEnd Sub程序运行后,单击命令按钮,窗体上显示的内容是()。
A. 1 2 3 2 4 6 3 6 9
B. 2 3 4 3 4 5 4 5 6
C. 1 2 3 4 5 67 8 9
D. 1 4 7 2 5 8 3 6 9
阅读程序:Option Base 1Dim arr() As IntegerPrivate Sub Form_Click()Dim i As Integer, j As IntegerReDim arr(3, 2)For i = 1 To 3For j = 1 To 2arr(i, j) = i * 2 + jNext jNext iReDim Preserve arr(3, 4)For j = 3 To 4arr(3, j) = j + 9Next jPrint arr(3, 2) + arr(3, 4)End Sub程序运行后,单击窗体,显示的结果为()。
A. 8
B. 13
C. 25
D. 21
如果列表框List1中没有选定的项目,则执行语句“List1.RemoveItem List1. ListIndex”的结果是()。
A. 移去第一项
B. 移去最后加入列表中的一项
C. 移去最后一项
D. 其他都不对
使用()语句将“北京奥运”添加到列表框List1的首项。
A. List1.AddItem "北京奥运",0
B. List1.AddItem "北京奥运"
C. List1.Text= "北京奥运"
D. List1.List(0)= "北京奥运"