在窗体上画一个命令按钮,其名称为Command1,然后编写如下事件过程:Private Sub Command1_Click() Dim a1(4, 4), a2(4, 4)Dim i As Integer, j As IntegerFor i = 1 To 4For j = 1 To 4 a1(i, j) = i + j a2(i, j) = a1(i, j) + i + jNext j Next i Print a1(3, 3); a2(3, 3) End Sub程序运行后,单击命令按钮,在窗体上输出的是______。
A.66
B.105
C.721
D.612
参考答案:D
解析:本题也是通过一个 For 循环来给数组赋值。由 a1(i,j)=i+j 可知,a1(3,3)=3+3=6,而由 a2(i,j)=a1(i,j)+i+j可知 a2(3,3)=a1(3,3)+3+3=6+3+3=12。