下列数组定义中错误的是______。
A: Dim a(-5 To-3)
B: Dim a(3 To 5)
C: Dim a(-3 To-5)
D: Dim a(-3 To 3)
A: Dim a(-5 To-3)
B: Dim a(3 To 5)
C: Dim a(-3 To-5)
D: Dim a(-3 To 3)
C
举一反三
- 下列数组定义中正确的是______。 A: Dim arr%(-5 To -2,5) B: Dim arr%(-2,0 To 5) C: Dim arr(8,3)% D: Dim arr(-1 To -3)
- 如下数组声明语句,正确的是______。 A: Dim a%(,) B: Dim b%(4) = {1, 2, 3, 4, 5} C: Dim c%(-2) D: Dim d%{{1, 2, 3}, {4, 5, 6}}
- 下列声明中正确的是______。 A: Dim a() As BooleanReDim a(8,5) B: Dim a()ReDim a(5) As Integer C: Dim a(3) As IntegerReDim a(5) D: Dim a()ReDim a()
- 下面数组声明语句错误的是__________。 A: Dim a%(-5 to -3) B: Dim a%(-1 to 2,3) C: Dim n%,a%(n) D: Dim a(-1 to 0) as 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
内容
- 0
下列数组声明语句,________是正确的。 A: Dim a(3, 4) As Integer B: Dim a(3, 4) As Single C: Dim a{3, 4} As Integer D: Dim a[3, 4] As Integer E: Dim a(3 4) As Integer F: Dim a[3:4] As Integer
- 1
下列数组声明语句中,不正确的是_________。 A: Dim a(9) As Single = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10} B: Dim a() = {1, 2, 3, 4, 5, 6, 10} C: Dim a( ,) As Single = {{1, 2, 3, 4, 5}, {6, 7, 8, 9, 10}} D: Dim a() As Single = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10} E: Dim n As Integer=10Dim a(n) As Single
- 2
用语句 Dim A(-3 to 5)As Long 定义的数组元素个数是()。
- 3
下列数组声明语句中,不正确的是_________。 A: Dim a(3) As Single = {0, 1, 2, 3} B: Dim a%(3) C: Dim a(1, 4) As Single D: Dim a(4) As Single
- 4
下面的数组声明语句中( )是正确的。 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