语句Dim s(1 to 5)as Single定义的数组有()个元素。A、5B、6C、1D、15
语句Dim s(1 to 5)as Single定义的数组有()个元素。
- A、5
- B、6
- C、1
- D、15
相关考题:
定义有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.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
用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
如果不使用Option Base语句,则下面数组说明语句等效的有()A、Dim A(0to8,0to3)B、Dim A(1to8,1to3)C、S Dim A(7,2)D、Dim A(8,3)
要分配一个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(2 to 5 5 to 6)as Single说明数组A共有()个元素。A6B8C10D1