• 2022-06-16 问题

    数组的( )方法可以用来获得指定维度的大小。 A: GetLength B: Count C: GetUpperBound D: Length

    数组的( )方法可以用来获得指定维度的大小。 A: GetLength B: Count C: GetUpperBound D: Length

  • 2022-06-10 问题

    已知有一个一维数组A,下列语句______不能得到数组的总大小。 A: A.Length B: A.GetLength C: A.GetLength(0) D: A.GetUpperBound(0) + 1

    已知有一个一维数组A,下列语句______不能得到数组的总大小。 A: A.Length B: A.GetLength C: A.GetLength(0) D: A.GetUpperBound(0) + 1

  • 2022-05-26 问题

    以下程序的输出结果是( )。Dim a%( ) = { 1, 2, 3, 4, 5, 6, 7 }, i%For i = 0 To a.GetUpperBound(0) a(i) = a(i) * a(i)NextMsgBox( a(i) ) A: 49 B: 0 C: 不确定 D: 程序出错

    以下程序的输出结果是( )。Dim a%( ) = { 1, 2, 3, 4, 5, 6, 7 }, i%For i = 0 To a.GetUpperBound(0) a(i) = a(i) * a(i)NextMsgBox( a(i) ) A: 49 B: 0 C: 不确定 D: 程序出错

  • 2021-04-14 问题

    以下程序的输出结果为______。 Dim a%() = {345, -54, 200, 356, 65, 23} Dim i As Integer, m As Integer, intIndex As Integer m = a(intIndex) For i = a.GetLowerBound(0) To a.GetUpperBound(0) If a(i) > m Then m = a(i) intIndex = i End If Next MsgBox(m & " " & intIndex)? 345 ; ;1|-24 ; ;2|356 ; ;4|356 ; ;3

    以下程序的输出结果为______。 Dim a%() = {345, -54, 200, 356, 65, 23} Dim i As Integer, m As Integer, intIndex As Integer m = a(intIndex) For i = a.GetLowerBound(0) To a.GetUpperBound(0) If a(i) > m Then m = a(i) intIndex = i End If Next MsgBox(m & " " & intIndex)? 345 ; ;1|-24 ; ;2|356 ; ;4|356 ; ;3

  • 1