语句Dim A(2 to 5 5 to 6)as Single说明数组A共有()个元素。A、6B、8C、10D、1
语句Dim A(2 to 5 5 to 6)as Single说明数组A共有()个元素。
- A、6
- B、8
- C、10
- D、1
相关考题:
下面的语句用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 gg[1,5]As StringB.Dim gg[1 To 5,1 To 5]As StringC.Dim gg(1 To 5) As StringD.Dim gg[1:5,1:5]As String
定义有5个整数型元素的数组,正确的语句是A.Dim a(4) As IntegerB.Option Base 1:Dim a(5)C.Dim a (5)D.Dime a(5) As Integer
下列哪个语句定义了包含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
下面的语句用 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
假定有如下的Sub过程: Sub Func(x As Single, y As Single) t=x x=t/y y=t Mod y End Sub 在窗体上画一个命令按钮,然后编写如下事件过程: Private Sub Command1_Click() Dim a As Single Dim b As Single a=6 b=5 Func(a, B) Print a, b End Sub 程序运行后,单击命令按钮,输出结果为 ______。A.6 5B.1 1C.1.2 5D.1.2 1
下面的数组声明语句中正确的是A.Dim gg[1,5] As StringB.Labell.BackStyle=1C.Dim gg(1 To 5) As StringD.Dim gg[1:5,1:5]As String
用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 gg[1,5]As StringB.Label1.BackStyle=1C.Dim gg(1 To 5)As StringD.Dim gg[1:5,1:5]As String
有如下程序: Private Sub Command1 Click() Dim a As Single Dim b As Single a=5:b=4 Call S(a,B)End Sub Sub S(x As Single,y As Single) t=x x=t\y y=t Mod y End Sub 在调用运行上述程序后,a和b的值分别为A.0 0B.1 1C.2 2D.1 2
要分配一个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 arr(-3 To 5,2 To 6)As Integer定义的数组元素有()个。A45B40C11D54