下列语句中,正确的是______。
A: Dim a As Varianta = Array(1,2,3,4,5)
B: Dim a(10) As Integera = Array(1,2,3,4,5)
C: Dim a%(10)a(1) = "ABCDE"
D: Dim a(3),b(3) As Integera(0) = 0b = a
A: Dim a As Varianta = Array(1,2,3,4,5)
B: Dim a(10) As Integera = Array(1,2,3,4,5)
C: Dim a%(10)a(1) = "ABCDE"
D: Dim a(3),b(3) As Integera(0) = 0b = a
举一反三
- 以下定义数组或给数组元素赋值的语句中,正确的是 A: Dim a As Variant B: a=Array(1,2,3,4,5) C: Dim a (10) As Integer D: a=Array(1,2,3,4,5) E: Dim a%(10) F: a(1)="ABCDE" G: Dim a (3),b(3) As Integer H: a(0)=0 I: a(1)=1 J: a(2)=2 K: b=a
- 以下定义数组或给数组元素赋值的语句中,正确的是( )。 A: Dim a As Variant a=array(1,2,3,4,5) B: Dim a(10)As Integer a=array(1,2,3,4,5) C: Dim a%(10) a(1)= "ABCDE" D: Dim a(10)As Integer a=array("ABCDE")
- 下列数组声明语句中,不正确的是_________。 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
- 以下定义数组或给数组元素赋值的语句中,正确的是( ) A: Dim a As Variant a=Array(1,2,3,4,5) B: Dim a(10)As Integer a=Array(1,2,3,4,5) C: Dim a%(10) <br> a(1)="ABCDE"
- 如下数组声明语句,正确的是______。 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}}