设有数组定义语句:Dim a(5) As Integer,并设List1为列表框控件。下列给数组元素赋值的语句错误的是( )。A.a(3)=3B.a(3)=inputbox("inputdata")C.a(3)=List1.ListIndexD.a=Army(1,2,3,4,5,6)
设有数组定义语句:Dim a(5) As Integer,并设List1为列表框控件。下列给数组元素赋值的语句错误的是( )。
A.a(3)=3
B.a(3)=inputbox("inputdata")
C.a(3)=List1.ListIndex
D.a=Army(1,2,3,4,5,6)
相关考题:
设有数组定义语句:Dim a(5) As Integer,List1为列表框控件。下列给数组元素赋值的语句错误的是A.a(3)=3B.a(3)=InputBox("inputdata")C.a(3)=List1.ListlndexD.a=Array(1,2,3,4,5,6)
设有数组定义语句:Dim a(5) As Integer,List1为列表框控件。下列给数组元素赋值的语句错误的是( )。A.a(3) =3B.a(3) =inputbox("input data")C.a(3) =List1.ListIndexD.a=Array(1,2,3,4,5,6)
(23)设有数组定义语句:Dim a(5)As Integer,并设List1为列表框控件。下列给数组元素赋值的语句错误的是A.a(3)=3 B.a(3)=inputbox("inputdata") C.a(3)=List1.ListIndex D.a=Array(1,2,3,4,5,6)
定义有5个整数型元素的数组,正确的语句是A.Dim a(4) As IntegerB.Option Base 1:Dim a(5)C.Dim a (5)D.Dime a(5) As Integer
以下定义数组或给数组元素赋值的语句中,正确的是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 (3),b(3) As Integer a(0)=0 a(1)=1 a(2)=2 b=a
以下定义数组或给数组元素赋值的语句中,正确的是A.Dim x%(2) x(1)="等级考试"B.Dim x(3), y(3)As Integer x(0)=1:y=xC.Dim x x=Array(0,1,2)D.Dim x(3)As Integer x=Array(0,1,2)
下面的语句用Array函数为数组a的各元素赋整数值: a=Array(1,2,3,4,5,6,7,8,9) 对数组变量a的正确定义是A.Dim aB.Dim a As IntegerC.Dim a(9) As IntegerD.Dim a() As IntegEr
设有数组定义语句:Dima(5)AsInteger,Listl为列表框控件。下列给数组元素赋值的语句错误的是( )。A.a(3)=3B.a(3)=inputbox("inputdata")C.a(3)=Listl.ListlndexD.a=Array(1,2,3,4,5,6)
设有数组定义语句:Dim a(5)As Integer,并设List1为列表框控件。下列给数组元素赋值的语句错误的是( )。A.a(3)=3B.a(3)=inputbox("inputdata")C.a(3)=List1.List1ndexD.a=Array(1,2,3,4,5,6)
以下定义数组或给数组元素赋值的语句中,正确的是A. Dim a As Variant a=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 Integer a(0)=0 a(1)=1 a(2)=2 b=a
填空题用语句Dim A (-3 To 5) As Integer定义的数组的元素个数是()