下列数组说明语句正确的是
A: Dim g(0,-5)As Single
B: Dim h(100 To 100,100)As String
C: Dim x(5)As Integer
D: ReDim x(10)As Integer
E: Dim y()
F: ReDim y
A: Dim g(0,-5)As Single
B: Dim h(100 To 100,100)As String
C: Dim x(5)As Integer
D: ReDim x(10)As Integer
E: Dim y()
F: ReDim y
举一反三
- 下列数组声明正确的是( )。 A: n=5 Dim a(1 to n) As Integer B: Dim a(10) As Integer ReDim a(1 To 12) C: Dim a() As Single ReDim a(3,4) As Integer ReDim a(1 to n)As Integer D: Dim a() As Integer n=5
- 下列声明中正确的是______。 A: Dim a() As BooleanReDim a(8,5) B: Dim a()ReDim a(5) As Integer C: Dim a(3) As IntegerReDim a(5) D: Dim a()ReDim a()
- 下面可以正确定义2个整形变量和一个字符型变量的语句是() A: Dim x%, y As Integer, n As String B: Dim x As Integer, y, n As String C: Dim x, y As Integer, n As String D: Dim x%, y$, n As String
- 下列一维数组声明语句错误的是( B )。 A: DIM B(100) AS DOUBLE B: DIM B(-20 TO -50) AS INTEGER C: DIM B(-15 TO 0) D: DIM B(5 TO 5) AS STRING
- 下列数组声明语句中,正确的是_________。 A: Dim a(5) As Integer = {11,22,33,44,55} B: Dim a( , ) As Single = {{1,2,3,4,5},{6,7,8,9,0}} C: Dim a(x) As Single x此前未声明 D: Dim a(4) As Integer = {1,2,3,4,5}