下列数组定义语句错误的是( )。
A.k%=10
Dim Arr(k)
B.Const k%=10
Dim Arr(k)
C.Dim Arr1(10) As Integer
Dim Arr2 (10)
D.Dim Arr1(1 To 10)
Dim Arr2(1 To 10, 2 To 11)
第1题:
语句Dim Arr(-3 To 5)As Integer定义的数组元素个数是( )。
A.6
B.7
C.8
D.9
第2题:
以下有关数组定义的语句序列中,错误的是______。
A.Static arrl(3) rrl(1)=100 arrl(2)="Hello" arrl(3)=123.45
B.Dim arr2()As Integer Dim size As Integer Private Sub Command2_Click() size=inputBox('输入:") ReDimarr2(size) End Sub
C.OptionBase 1 Private Sub Command3_Click() Dim arr3(3) As Integer End Sub
D.Dim n As Integer Private Sub Command4_Click() Dim arr4(n)As Integer End Sub
第3题:
()语句不能正确声明数组。
A.Dim Arr(3 to n)
B.Dim Arr(12) As Integer
C.Dim Arr(2 To 3) As Integer
D.Dim Arr(12)
第4题:
以下有关数组定义的语句序列中,错误的是______。
A.Static arrl(3) arrl(1)=100 arrl(2)="Hello" arrl(3)=123.45
B.Dim arr2()As Integer Dim size As Integer Private Sub Command2 Click() size=InputBox("输入:") ReDimarr2(size) End Sub
C.Option Basel Private Sub Command3 Click() Dim arr3(3)As Integer End Sub
D.Dim n As Integer Private Sub Command4 Click() Dim arr4(n) As Integer End Sub
第5题:
语句Dim Arr(99) As Integer定义了一个数组,该数组的元素个数是()。
A.99
B.98
C.100
D.未知