Dim x As Variant与下列哪个语句等价()。A、Dimx!B、Dimx%C、DimxD、Dimx#
Dim x As Variant与下列哪个语句等价()。
- A、Dimx!
- B、Dimx%
- C、Dimx
- D、Dimx#
相关考题:
( 31 )下列数组声明语句中,正确的是A ) dim A[3,4] As integerB ) dim A(3,4) As integerC ) dim A[3;4] As integerD ) dim A(3;4) As integer
下列数组声明语句中,正确的是( )。A.Dim A[3,4] As IntegerB.Dim A(3,4) As IntegerC.Dim A[3;4] As IntegerD.Dim A(3;4) As Integer
(25)下列程序段错误的是。A.Dim a As Integer a=array(1,2,3,4) B.Dim a(),b() a=array(1,2,3,4):b=a C.Dim a As Variant a=array(1,"asd",true) D.Dim a() As Variant a=array(1,2,3,4)
下列哪个语句定义了包含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)
有下列程序: Option Base 0 Private Sub Command1_Click() Dim City As Variant x = Array("Visual","Basic","Microsoft","Programming") Print x(2) End Sub 程序运行后,单击命令按钮,则在窗体上显示的内容是A.MicrosonB.错误提示C.VisualD.Basic
设有如下程序: Private Sub search(a()As Variant,ByVal key As Variant,index%) Dim I% For I = Lbound(a)To Ubound(A)If key=a(I)Then index=I Exit Sub End If Next I index=-1 End Sub Private Sub Form_Load() Show Dim b()As Variant Dim n As Integer b=Array(21,64,92,15,72,38,45,72) Call search(b, 45, n) Print n End Sub 程序运行后,输出的结果是A.2B.6C.10D.12
下列数组声明语句中,正确的是( )。 A.Dim A[3,4]As IntegerB.Dim A(3,4)As IntegerS 下列数组声明语句中,正确的是( )。A.Dim A[3,4]As IntegerB.Dim A(3,4)As IntegerC.Dim A[3;4]As IntegerD.Dim A(3;4)As Integer
变量定义语句Dim Index与下面的______等价。 ( )A.Dim Index As LongB.Dim Index As IntegerC.Dim Index As SingleD.Dim Index As Double
下列数组说明语句正确的是A.Dim g(0,-5)As SingleB.Dim h(100 To 100,100)As StringC.Dim x(5)As Integer ReDim x(10)As IntegerD.Dim y() ReDim y
下列各语句中,正确的是A) Dim x As Variant=Array(1, 2,3, 4. 5)B)Dim xo As Integer: x=Array (1, 2:3: 4.5)C)Dim x As ariant: x=Array(1: abc: 2,3. 41)D) Dim x As Integer: x=Arra (1, 2, 3+25)
对于整型变量x,下属if语句()与赋值语句:x=x%2==0?1:0;不等价。A、if(x%2!=0)x=0;elsex=;B、if(x%2)x=1;elsex=0C、if(x%2==0)x=1;elsex=0D、if(x%2==1)x=0;elsex=1
在VB中,使用变量前一般应对变量进行定义。以下变量定义语句错误的是()。A、Dim x As IntegerB、Dim x As Integer,y As SingleC、Var x,y:IntegerD、Dim x As Integer,y As Integer
在VB语言中,下列定义变量语句格式正确的是()。A、Dim As String xuehaoB、Dim xuehao As StringC、Dim String As xuehaoD、Const xuehao As String
下列数组声明语句,正确的是()。A、Dim a[3,4] As IntegerB、Dim a(3 4) As IntegerC、Dim a(n,n) As IntegerD、Dim a(3,4) As Integer
下列定义abc过程的语句,正确的是()A、Dim Sub abc(x,y)B、Public abc(x,y)C、Private Sub abc(x,y)As IntegerD、Sub abc(x,y)
单选题若有语句:int x,*p=x;则与该语句等价的语句是()Aintx,*p;*p=x;Bint x,*p;p=x;Cint x,*p;*p=x;Dint x,*p;p=x