有一数组定义语句:dim M(-2 to 1) as string,该语句定义的数组M中包含()个元素。
有一数组定义语句:dim M(-2 to 1) as string,该语句定义的数组M中包含()个元素。
相关考题:
1个二维数组可以存放1个矩形.在程序开始有语句Option Base 0,则下面定义的数组中正好可以存放1个4*3矩阵(即只有12个元素)的是( )。A.Dim a(-2 To 0,2) AS IntegerB.Dim a(3,2) AS IngegerC.Dim a(4,3)AS IngegerD.Dim a(-1 To -4,-1 To -3)AS Ingeger
( 15 ) 1 个二维数组可以存放 1 个矩形 . 在程序开始有语句 Option Base 0, 则下面定义的数组中正好可以存放 1 个 4*3 矩阵(即只有 12 个元素)的是( )A ) Dim a ( -2 To 0,2 ) AS IntegerB ) Dim a ( 3,2 ) AS IngegerC ) Dim a ( 4,3 ) AS IngegerD ) Dim a ( -1 To -4,-1 To -3 ) AS Ingeger
下列数组定义语句错误的是( )。A.k%=10Dim Arr(k)B.Const k%=10Dim Arr(k)C.Dim Arr1(10) As IntegerDim Arr2 (10)D.Dim Arr1(1 To 10)Dim Arr2(1 To 10, 2 To 11)
定义有5个整数型元素的数组,正确的语句是A.Dim a(4) As IntegerB.Option Base 1:Dim a(5)C.Dim a (5)D.Dime a(5) As Integer
下列哪个语句定义了包含12个元素的整型数组( )。 A、Dim a(3,4) As IntegerB、Dim a(1 to 12)%C、Dim a%(-1 to 1,3)D、Dim a(1 to 2,3 to6) As Long
下列哪个语句定义了包含8个元素的单精度数组( ) A、Dim a(2,4) As Single3CB、 Dim a(1 to 8)!C、Dim a!(7)D、 Dim a(1 to 2,3 to 6) As Long
以下定义数组或给数组元素赋值的语句中,正确的是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)
下列数组定义语句错误的是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)
用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
下面的语句用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
以下定义数组或给数组元素赋值的语句中,正确的是( )。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)=0a(1)=1a(2)=2b=a
在VBA中要定义一个100元素的个整型数组,正确的语句是()A、Dim NewArray(100)AsIntegerB、Dim NewArray(2 To 101)AsIntegerC、Dim NewArray(2 To 101)D、Dim NewArray(100)
单选题语句Dim aa(-1 to 1,-2 to 1)定义的二维数组共有()个元素。A2B12C4D6