[单选题]

有以下程序: Option Base 1 Dimair()As Integer Private Sub Form_Click() Dimi As Integer,j As Integer ReDimalt(3,2) Fori=1 To 3 Forj=1 To 2 alt(i,j)=i*2+j Nextj Nexti ReDimPreservearr(3,4) Forj=3 To 4

A. 8 13

B.0 13

C. 7 12

D.0 0

参考答案与解析:

相关试题

阅读程序:Option Base 1Dim arr()As IntegerPri

[单选题]阅读程序: Option Base 1 Dim arr()As Integer Private Sub Form_Click() Dim i As Integer,j As Integer ReDim arr(3,2) For i=1 To 3 For j=1 To 2 arr(i,j)=i*2+j Next j Next i ReDim Preserve arr(3,4) For j=3 To 4 arr(3,j)=j+9 Next j Print arr(3,2)+arr(3,4) End

  • 查看答案
  • 阅读程序:Option Base 1Dim art()As IntegerPri

    [单选题]阅读程序: Option Base 1 Dim art()As Integer Private Sub Form_Click() Dim i As Integer,j As Integer ReDim arr(3,2) For i=1 To 3 For j=1 To 2 arr(i,j)=i*2+j Next Next ReDim Preserve ale(3,4) For j=3 To 4 arr(3,j)=j+9 Next Print arr(3,2)+arr(3,4) End Sub 程序

  • 查看答案
  • 有以下程序:Option Base 1 Dim arr() As Integer

    [单选题]有以下程序:Option Base 1D.im arr() As IntegerPrivate Sub Form_Click()D.im i As Integer,j As IntegerReDim arr(3,2)F.or i=1 To 3F.or j=1 To 2arr (i,j)=i*2+jNext jNext iReDim Preserve arr(1,4)F.or j=3 To 4A.rr(3,j)=j+9Next jPrint arr(3,2);arr(3,4)E.nd Sub程序运

  • 查看答案
  • ( 24 )有以下程序:Option Base 1Dim arr() As In

    [单选题]( 24 )有以下程序:Option Base 1D.im arr() As IntegerPrivate Sub Form_Click()D.im i As Integer, j As IntegerReDim arr(3, 2)F.or i = 1 To 3F.or j = 1 To 2arr(i, j) = i * 2 + jNext jNext iReDim Preserve arr(3, 4)F.or j = 3 To 4arr(3, j) = j + 9Next jPrint arr

  • 查看答案
  • 有以下程序:Option Base 1Dim arr()As IntegerPr

    [单选题]有以下程序: Option Base 1 Dim arr()As Integer Private Sub Form. Click() Dim i As Integer,j As Integer ReDim arr(3,2) For i=1 To 3 For j=1 To 2 arr(i,j)=i*2+j Next j Next i ReDim Preserve arr(3,4) For j=3 To 4 arr(3,j)=j+9 Next j Print arr(3,2);arr(3,4) En

  • 查看答案
  • 以下程序的输出结果是()。 Option Base 1 Private Sub

    [单选题]以下程序的输出结果是( )。 Option Base 1 Private Sub Command1 Click() Dim a(10),p(3)as Integer k=5 For I=1 to 10 a(i)=I Next I For j=1 to 3 p(i)=a(I*j) Next j For I=1 to 3 k=k+p(I)*2 Next I Print k End SubA.33B.28C.35D.37

  • 查看答案
  • 以下程序的输出结果是( )。 Option Base 1 Private Sub

    [单选题]以下程序的输出结果是( )。 Option Base 1 Private Sub Command1_Click() Dim a(10),p(3) as Integer k=5 For I-1 to 10 a(i)=I Next I For j=1 to3 p(i)=a(I*j) Next j For I=l to 3 k=k+ p (I)*2 Next I Print k End SubA.33B.28C.35D.37

  • 查看答案
  • 阅读程序: Option Base 1 Dim arr()As Integer

    [单选题]阅读程序:Option Base 1D.im arr()As IntegerPrivate Sub Form_Click()D.im i As Integer, j As IntegerReDim arr(3,2)F.or i = 1 To 3F.or j = 1 To 2arr(i,j)=i*2+jNextNextReDim Preserve arr(3,4)F.or j=3 To 4arr(3,j)=j+9NextPrint arr(3,2)+arr(3,4)E.nd Sub程序运行后,单击

  • 查看答案
  • 下面程序:________Option Base 1Private Sub Co

    [单选题]下面程序:________Option Base 1Private Sub Command1_Click() Dim a(10),p(3)As Integer Dim i,k As Integer k=5 For i=1 To 10 a(i)=i Next For i=1 To 3 p(i)=a(i*i) Next For i=1 To 3 k=k+p(i)*2 Next Print kEnd Sub运行后的输出结果为________。A.33B.28C.35D.37

  • 查看答案
  • 以下程序运行后输出的结果是 ______。Option Base 1Privat

    [单选题]以下程序运行后输出的结果是 ______。 Option Base 1 Private Sub Form_Click() Dim A(20) For K=1 To 20 A(K)=K^2 Next K Print A(K) End SubA.20B.441C.400D.出错信息

  • 查看答案