单项选择题

<上一题 目录 下一题>
热门 试题

单项选择题
阅读下列程序: Private Sub Command1_Click() Dim i As Integer, k As Integer k=2 For i=1 To 3 Print H(k); Next i End Sub Function H(j As Integer) Static b a=0 a=a+1 b=b+1 H=a*b+jEnd Function单击命令按钮,执行程序,输出结果是( )。
A.2 3 4
B.3 4 5
C.5 6 7
D.3 5 6
单项选择题
有如下的函数过程: Function Func2(a As Integer, b As Integer)’As Integer Static m As Integer, i As Integer m=0 i=2 a=i+m+1 b=i+a+b Func2=m End Function 在窗体上画一个命令按钮,然后编写如下事件过程: Private Sub Command1_Click() Dim p As Integer, k As Integer, m As Integer k=4 m=1 p=Fune2(k, m) Print k; m p = Func2(k, m) Print k; m End Sub 程序运行后,单击命令按钮,输出结果为( )。
A.3 6<CR>3 6
B.3 6<CR>3 11
C.3 11<CR>3 6
D.3 11<CR>3 11
相关试题
  • 滚动条分为两种,即______。
  • 在窗体上画一个文本框(其Name属性为Text1...
  • 计算For循环次数的公式是______。
  • 在Visual Basic6.0中,InputBox函数用...
  • 栈中允许进行插入和删除的一端叫做____...