【单选题】设有以下程序代码:Private Sub Command1_Click() Static a As Integer proc a Print aEnd SubSub proc(x As Integer) x = x + 1End Sub运行程序,3次单击命令按钮,第3次单击后显示的是_______________。
【简答题】有如下程序代码 Private Sub Command1_Click() Dim A(2 To 7) As Integer Dim i As Integer For i = 2 To 7 A(i) = i Next i print A(i - 2) End Sub 以上程序的执行结果是( )。
【单选题】有以下程序代码 : Private Sub Command1_Click () Print fun(10), fun(5) End Sub Private Function fun(n As Integer) As Integer Static t For k = 1 To n t = t + k Next k fun = t End Function 执行 Command1_Click 过程产生...
【单选题】设有以下程序代码: Private Sub Command1_Click () Static x As Integer proc x Print x End Sub Sub proc ( a As Integer ) a = a + 2 End Sub 运行程序,单击命令按钮 3 次,第 3 次单击后显示的是 ( ) 。