语句 Dim Arr(-2 To 4)As Integer 所定义的数组的元素个数为_________。A.7B.6C.5D.4
语句 Dim Arr(-2 To 4)As Integer 所定义的数组的元素个数为_________。
A.7
B.6
C.5
D.4
参考答案和解析
A
相关考题:
以下有关数组定义的语句序列中,错误的是A.Static arrl(3) arr1(1)=100 arrl(2)="Hello" arrl(3)=123.45B.Dim arr2()As Integer Dim size As Integer Private Sub Command2_Click() size=InputBOX(“输入:”) ReDim arr2(size) ┄ End SubC.Option Base 1 Private Sub Command3_Click() Dim arr3(3)As Integer ┄ End SubD.Dim n As Integer Private Sub Command4_Click() Dim arr4(n)As Integer ┄ End Sub
下列数组定义语句错误的是A.k%=10 Dim Arr(k)B.Const k%=10 Dim Arr(k)C.Dim Arrl(10) As Integer Dim Arr2(10)D.Dim Arrl(1 To 10) Dim Arr2(1 To 10,2 To 11)
以下有关数组定义的语句序列中,错误的是 ______。A.Static arr1(3) arr1(1)=100 arr1(2)="Hello" arr1(3)=12345B.Dim arr2()As Integer Dim size As Integer Private Sub Command2_Click() size=Input Box("输入:") ReDimarr2(size) ... End SubC.Option Base 1 Private Sub Command3_Click() Dim arr3(3)As Integer ... End SubD.Dim n As Integer Private Sub Command4_Click() Dim arr4(n)As Integer ... End Sub
用Dim arr(3 To 5,-2 To 2)语句定义的数组元素个数是( )。A.20B.12C.15SXB 用Dim arr(3 To 5,-2 To 2)语句定义的数组元素个数是( )。A.20B.12C.15D.24
以下有关数组定义的语句序列中,错误的是A.Static arr1(3) Arr1l(1)=100 Arr1(2)=“Hello” Arr1(3)=123.45B.Dim art2( )As Integer Dim size As Integer Private Sub Command2_Click( ) size=Input Box(“输入:”) ReDinl.arr2(size) …… End SubC.Option Base 1 Private Sub Command3_Click( ) Dim arr3(3) As Integer …… End SubD.Dim n As Integer Private Sub Command4_Click( ) Dim arr(n) As Integer …… End Sub
以下有关数组定义的语句序列中,错误的是( )。A.Static arr1(3) arr1(1)=100 arr1(2)="Hello" arr1(3)=123.45B.Dim arr2() AsInteger Dim size As Integer Private Sub Command2_Click () size=InputBox("输入:") ReDim arr2(size) …… EndSubC.Option Base 1 Private Sub Command3 Click() Dim art3(3) As Integer …… End SubD.Dim n As Integer Private Sub Command4 Cliok() Dim arr4(n)As Integer …… End Sub
单选题语句Dim arr(-3 To 5,2 To 6)As Integer定义的数组元素有()个。A45B40C11D54