用语句 Dim A(-3 to 5)As Long 定义的数组元素个数是( )。
A: 7
B: 10
C: 8
D: 9
A: 7
B: 10
C: 8
D: 9
举一反三
- 用语句 Dim A(-3 to 5)As Long 定义的数组元素个数是()。
- 下面语句所定义的数组的元素的个数为_____。 Dim w(-3 To 5) As String A: 2 B: 5 C: 8 D: 9
- 下列数组声明语句中正确的是( )。 A: Dim A(9) As Single = { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 } B: Dim A( ) As Single = { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 } C: Dim A( ) As Single = { 1, "abc", "ccc", 4, 5, 6, 7, 8, 9, 10 } D: Dim A( , ) As Single = { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 }
- 用语句Dim A (-3 To 5) As Integer定义的数组的元素个数是().
- 下列数组声明语句中,不正确的是_________。 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