默认情况下,定义一个数组,要求只包含8个元素,以下定义不正确的是( )。
A: Dim sz(7) As Integer
B: Dim sz(8) As Integer
C: Dim sz(1,3) As Integer
D: Dim sz(1,1 To 4)
A: Dim sz(7) As Integer
B: Dim sz(8) As Integer
C: Dim sz(1,3) As Integer
D: Dim sz(1,1 To 4)
举一反三
- 在窗体模块的通用声明段有Option Base 1语句,以下不能正确定义1个4×3数组的语句是( ) A: Dim a (-2 To 1,3) As Integer B: Dim a (3,2) As Integer C: Dim a (4,3) As Integer D: Dim a(-4 To -1,-3 To -1) As Integer
- 以个哪个选项定义了10个整形数构成的数组,数组元素为Array(1)至Array(10)?( ) A: Dim Array(10) As Integer B: Dim Array(10) Integer C: Dim Array(1 to 10) As Integer D: Dim Array(1 to 10) Integer
- 以下定义数组的语句中,正确的是______。 A: Dim a( ,) as Integer B: Dim a(5 To 1) As Integer C: Dim a(-3 To 2000) As Single D: Dim a(n) As Double
- 下面的数组声明语句中,正确的是_____。 A: Dim a[1,2] As Integer B: Dim a(1,2) As Integer C: Dim a[1] [2] As Integer D: Dim a(1 to 0,2 to 0) As Integer
- 下面的数组声明语句中( )是正确的。 A: Dim A(3, 4) As Integer B: Dim A(3; 4) As Integer C: Dim A[3, 4] As Integer D: Dim A[3; 4] As Integer