Option Base 1
D.im arr()As Integer
Private Sub Form_Click()
D.im i As Integer, j As Integer
ReDim arr(3,2)
F.or i = 1 To 3
F.or j = 1 To 2
arr(i,j)=i*2+j
Next
Next
ReDim Preserve arr(3,4)
F.or j=3 To 4
arr(3,j)=j+9
Next
Print arr(3,2)+arr(3,4)
E.nd Sub
程序运行后,单击窗体,输出结果为
A.21
B.13
C.8
D.25
[单选题]阅读程序: 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 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 2an(i,j) =i*2+jNextNextReDim Preserve an(3,4)F.or j=3 To 4an(3,j) =j+9NextPrint arr(3,2) +air(3,4)E.nd Sub程序运行后,单击窗体,输
[单选题]阅读程序: Option Base 1 Dim arr() As Integer Private Sub Form. Click() Dim i As Integer,i 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 arr(3,2)+arr(3,4) End Sub 程序运行后,单击窗体,输出结果为A.21B.13C.8D.25
[单选题]有以下程序: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程序运
[单选题]阅读程序: 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 程序
[单选题]( 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 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
[单选题]阅读程序:Private Sub Commandl一Click()D.im arrD.im i AS Integerarr=Array(0,1, 2,3,4,5,6,7,8,9,10)F.or i=0 To 2Print arr(7-i);NextE.nd Sub程序运行后,窗体上显示的是:A.8 7 6B.7 6 5C.6 5 4D.5 4 3
[单选题]阅读程序: Option Base 1 Private Sub Form_Click( ) Dim arr,Sum Sum=0 arr=Array(1,3,5,7,9,11,13,15,17,19) For i=1 To 10 If arr(i)/3=arr(i)/3 Then Sum=Sum+arr(i) End If Next i Print Sum End Sub程序运行后,单击窗体,输出结果为A.13B.14C.27D.15
[主观题]阅读程序;Option Base 1Private Sub Form_ KeyPress (KeyAscii As Integer)art = Array(268, 542, 693, 365, 489, 147, 852)a1 = arr(1)a2 = 1If KeyAscii = 13 ThenF.or a = 2 To 6If arr(i) > a1 Thena1 = arr(i)a2 = iE.nd IfNext iE.nd IfPrint a1; a2E.nd Sub程序运行后,按回车