语句Dim aa(-1 to 1,-2 to 1)定义了一个()的二维数组。A、2行2列B、1行2列C、3行4列D、1行1列
语句Dim aa(-1 to 1,-2 to 1)定义了一个()的二维数组。
- A、2行2列
- B、1行2列
- C、3行4列
- D、1行1列
相关考题:
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)
下列哪个语句定义了包含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.Static a(10) As IntegerB.Dim c(3,1 To 4)C.Dim d(-10)D.Dim b(0 To 5,1 To 3)As Integer
下列数组定义语句错误的是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
以下定义数组或给数组元素赋值的语句中,正确的是( )。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
要分配一个3×3的单精度类型的数组,正确的数组声明语句是()A、Dim a(9)AsSingleB、Dim a(-1 To 1,-5 To -3)As SingleC、Dim a(3,3)As SingleD、Dim a(-3 To 1,-5 To 7)As Single
单选题设有数组定义语句:Dim a(5)As Integer,List1为列表框控件。下列给数组元素赋值的语句错误的是( )。Aa(3)=3Ba(3)=Inputbox("inputdata")Ca(3)=List1.ListIndexDa=Array(1,2,3,4,5,6)
单选题语句Dim aa(-1 to 1,-2 to 1)定义的二维数组共有()个元素。A2B12C4D6