题目内容

命令按钮Command1的单击事件过程如下:Private Sub Command1_Click()Dim a(10,10) As Integerx=0For i=1 To 3For j=1 To 3a(i,j)=i*3 Mod jIf x

查看答案
更多问题

设有如下事件过程:Private Sub Command1_Click()Dim aa = Array(3, 5, 6, 3, 2, 6, 5, 3,5, 4, 3, 9, 4, 5, 6, 3, 5)x = 0n = UBound(a)For i = 0 To nm = 0For j = 0 To nIf a(i) = a(j) Thenm = m + 1End IfNext jIf m > x Then x = m: b = a(i)Next iPrint bEnd Sub运行程序,输出的是________。

执行以下程序段,则第一行输出结果是_______,第二行输出结果是_______。Dim a(-6 To 7) As SingleDim b(2, 6) As IntegerPrint UBound(a), UBound(b, 1)Print LBound(a), LBound(b, 2)

执行以下程序,单击命令按钮后,输出结果是______。Private Sub Command1_Click()Dim a(5) As IntegerDim bFor i = 1 To 5a(i) = i*iNext iFor Each b In aPrint b;Next bEnd Sub

执行以下程序,单击命令按钮后,如果从键盘上输入5,则第一行输出结果是______,第二行输出结果是______。Private Sub Command1_Click()Dim a() As IntegerDim n As Integer, i As Integern =InputBox("input n:")ReDim a(n)For i = 1 To na(i) = 2*iPrint a(i);Next iPrintReDim a(10)For i =0 To 10Print a(i);Next iEnd Sub

答案查题题库