下列程序段错误的是( )。
A: Dim a As Integer
B: a=array(1,2,3,4)
C: Dim a(),b()
D: a=array(1,2,3,4): b=a
E: Dim a As Variant
F: a=array(1,"aSd",true)
G: Dim a()As Variant
H: a=array(1,2,3,4)
A: Dim a As Integer
B: a=array(1,2,3,4)
C: Dim a(),b()
D: a=array(1,2,3,4): b=a
E: Dim a As Variant
F: a=array(1,"aSd",true)
G: Dim a()As Variant
H: a=array(1,2,3,4)
举一反三
- 以下定义数组或给数组元素赋值的语句中,正确的是 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")
- 以个哪个选项定义了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
- 下面程序片段中有错误:Sub pric() Public x As Integer x = Array(1, 2, 3, 4, 5) ……End Sub为了避免出错,正确的修改方案是_______________。 A: 把Public x As Integer 改为Public x As Variant B: 把Public x As Integer 改为Dim x(5) C: 把Public x As Integer 改为Static x D: 把x = Array(1, 2, 3, 4, 5)改为x = Array(0, 1, 2, 3, 4)
- 以下定义数组或给数组元素赋值的语句中,正确的是( ) 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"