private Sub Command1_Click()
D.im arr(5)As Integer,arr1(5)As Integer
n=3
F.or i=1 To 5
arr(i)=i
arr1(n)=2*n+i
Next
Print arr1(n);arr(n)
E.nd Sub
程序的运行结果为
A.3 11
B.11 3
C.13 3
D.3 13
[单选题]在窗体上添加一命令按钮,其名为Command1,然后编写代码如下:private Sub Command1_Click()D.im an(5) As Integer,arrl(5) As Integern=3F.or i=1 To 5arr(i)=iarrl(n)=2*n+iNextPrint arrl(n);arr(n)E.nd Sub程序的运行结果为A.3 11B.11 3C.13 3D.3 13
[单选题]在窗体上添加一命令按钮,其名为Command1,然后编写代码如下。 private Sub Command1_Click() Dim arr(5)As Integer,arr1(5)As Integer n=3 For i=1 To 5 an(i)=i arrl(n)=2*n+i Next Print arr1(n);arr(n) End Sub 程序的运行结果为A.3 11B.11 3C.13 3D.3 13
[单选题]在窗体上添加一命令按钮,其名为Command1,然后编写代码如下: private Sub Command1_Click() Dim arr(5)As Integer,arr1(5)AS Integer n=3 For i=1 To 5 arr(i)=i arr1(n)=2*n+i Next Print arr1(n);art(n) End Sub 程序的运行结果为A.3 11B.11 3C.13 3D.3 13
[单选题]在窗体上添加一命令按纽,其名为Command1,然后编写代码如下: Private Sub Command1_Click() Dim arr (5)As Integer Dim arrl (5)As Integer n=3 For i=1 To 5 Arr (i)=i Arrl (n)=2*n+ i Next i Print arrl (n);arr (n) End Sub 程序的运行结果为:______。A. 3 11B.11 3C.13 3D.3 13
[单选题]在窗体上添加一个命令按钮,其名为Command1,然后编写代码如下:Option Base 1Private Sub command1_ Click() Dim arr (4)As Integer Dim arrt (4) As Integer for i= 1 To 4 Arr (i)= i arr1 (n)= 2 * n + i Next i Print arr1 (n); arr(n)程序的运行结果为______。A.3 11B.11 3C.10 3D.3 13
[单选题]在窗体上添加一个命令按钮(名为Command1),编写如下事件过程: Private Sub Command1_Click() For i=1 To 4 x=4 For j=1 To 3 x=3 For k=-1 To 2 x=x+6 Next k Next j Next i MsgBox x End Sub 打开窗体后,单击命令按钮,消息框的输出结果是( )。A.7B.15C.157D.528
[单选题]在窗体上添加一命令按钮,名称为Command1,然后为该命令按钮编写如下事件过程,该过程的执行结果为Option Base 1Private Sub Command1_Click()D.im a As Varianta=Array(1,2,3,4)j=1F.or i=4 To 1 Step -1s=s+a(i)*jj=j*10NextPrint sE.nd SubA.4321B.1234C.34D.12
[单选题]在窗体上添加一命令按钮,名称为Command1,然后为该命令按钮编写如下事件过程,该过程的执行结果为 Option Base 1 Private Sub Command1_Click() Dim a As Variant a=Array(1,2,3,4) j=1 For i=4 To 1 Step-1 s=s+a(i)*j j=j*10 Next Print s End SubA.4321B.1234C.34D.12
[试题]( 15 )在窗体上添加一个命令按钮(名为 Command1 ),然后编写如下事件过程:Private Sub Command1_Click ()D.im b,kF.or k=1 to 6b=23+kNext kMsgBox b+kE.nd Sub打开窗体后,单击命令按钮,消息框的输出结果是 ( 15 ) 。
[单选题]( 34 )在窗体上添加一个命令按钮(名为 Command1 ),然后编写如下事件过程:Private Sub Command1_Click()F.or i=1 To 4x=4F.or j=1 To 3x=3F.or k=1 To2x=x+6Next kNext jNext iMsgBox xE.nd Sub打开窗体后,单击命令按钮,消息框的输出结果是A. ) 7B. ) 15C. ) 157D. ) 538