• 2021-04-14 问题

    下面语句中错误的是 ( ) A.ReDim Preserve Matrix(10, UBound(Matrix, 2)+1) B.ReDim Preserve Matrix(UBound(Matrix, 1)-4-1, 10) C.ReDim Preserve DynArray(UBound(DynArray)+1) D.ReDim DynArray(UBound(DynArray)+1)

    下面语句中错误的是 ( ) A.ReDim Preserve Matrix(10, UBound(Matrix, 2)+1) B.ReDim Preserve Matrix(UBound(Matrix, 1)-4-1, 10) C.ReDim Preserve DynArray(UBound(DynArray)+1) D.ReDim DynArray(UBound(DynArray)+1)

  • 2021-04-14 问题

    如果a(-1 to 2),则函数UBound(a)的返回值是()

    如果a(-1 to 2),则函数UBound(a)的返回值是()

  • 2022-06-07 问题

    以下程序输出的结果是: Private Sub Form_Activate() Dim a a=Array(1,2,3,4,5) For i=Lbound(((A) To Ubound(((A) A(i)=i*a(i) Next i Print i, Lbound(((A) , Ubound(((A) , a(i) End Sub

    以下程序输出的结果是: Private Sub Form_Activate() Dim a a=Array(1,2,3,4,5) For i=Lbound(((A) To Ubound(((A) A(i)=i*a(i) Next i Print i, Lbound(((A) , Ubound(((A) , a(i) End Sub

  • 2021-04-14 问题

    Ubound(x)的作用是返回数组x的长度

    Ubound(x)的作用是返回数组x的长度

  • 2021-04-14 问题

    有如下程序: Const N=-5 Const M=6 Dim a(N To M)As Integer For i=LBound(a)To UBound(a) a(i)= i Next i Print a(LBound(a));a(UBound(a)) 运行后,输出结果为(  )。

    有如下程序: Const N=-5 Const M=6 Dim a(N To M)As Integer For i=LBound(a)To UBound(a) a(i)= i Next i Print a(LBound(a));a(UBound(a)) 运行后,输出结果为(  )。

  • 2022-06-06 问题

    要将字符串数组a中所有学生姓名按数组下标顺序追加到列表框List1中,可以使用的程序段为( )。 A: List1.AddItem a B: For i = 0 To UBound(a) - 1 List1.AddItem a(i), 0 Next i C: For i = 0 To UBound(a) – 1List1.List(i)=a(i)Next i D: For i = 0 To UBound(a) - 1 List1.AddItem a(i) Next i

    要将字符串数组a中所有学生姓名按数组下标顺序追加到列表框List1中,可以使用的程序段为( )。 A: List1.AddItem a B: For i = 0 To UBound(a) - 1 List1.AddItem a(i), 0 Next i C: For i = 0 To UBound(a) – 1List1.List(i)=a(i)Next i D: For i = 0 To UBound(a) - 1 List1.AddItem a(i) Next i

  • 2021-04-14 问题

    执行以下程序段后,文本框中显示的内容是________。Dim B(2, 3), i, j As IntegerFor i = 0 To UBound(B, 1)For j = 0 To UBound(B, 2)TextBox1.Text &= B(i, j) & vbTabNextTextBox1.Text &= vbCrLfNext

    执行以下程序段后,文本框中显示的内容是________。Dim B(2, 3), i, j As IntegerFor i = 0 To UBound(B, 1)For j = 0 To UBound(B, 2)TextBox1.Text &= B(i, j) & vbTabNextTextBox1.Text &= vbCrLfNext

  • 2021-04-14 问题

    已定义数组dim a(5) as integer,函数ubound(a())的值为________,lbound(a())的值为________

    已定义数组dim a(5) as integer,函数ubound(a())的值为________,lbound(a())的值为________

  • 2022-06-19 问题

    使用数组x输出10个1-100之间的随机整数(包括1和100),下列命令中正确的是:( ) A: Dim x(9) As Integer For i = 1 To UBound(x) x(i) = Int(Rnd() * 100 + 1) Print x(i); Next B: Dim x(9) As Integer For i = 0 To UBound(x) x(i) = Rnd(10) Print x(i); Next C: Dim x(9) As Integer For i = 0 To UBound(x) x(i) = Int(Rnd() * 100 ) Print x(i); Next D: Dim x(9) As Integer For i = 0 To UBound(x) x(i) = Int(Rnd() * 100 + 1) Print x(i); Next

    使用数组x输出10个1-100之间的随机整数(包括1和100),下列命令中正确的是:( ) A: Dim x(9) As Integer For i = 1 To UBound(x) x(i) = Int(Rnd() * 100 + 1) Print x(i); Next B: Dim x(9) As Integer For i = 0 To UBound(x) x(i) = Rnd(10) Print x(i); Next C: Dim x(9) As Integer For i = 0 To UBound(x) x(i) = Int(Rnd() * 100 ) Print x(i); Next D: Dim x(9) As Integer For i = 0 To UBound(x) x(i) = Int(Rnd() * 100 + 1) Print x(i); Next

  • 2022-06-07 问题

    Java中定义数组名为a,下面( )可以得到数组元素的个数 A: a.length( ) B: a.length C: len(a) D: ubound(a)

    Java中定义数组名为a,下面( )可以得到数组元素的个数 A: a.length( ) B: a.length C: len(a) D: ubound(a)

  • 1 2 3