更多"有如下程序: Private Sub Command1_Click("的相关试题:
[单项选择]有如下程序:
Private Sub Command1_Click( )
Dim k As Integer,m As Integer
Dim p As Integer
k=4:m=1
p=PC(k,m):Print p;
p=PC(k,m):Print p
End Sub
Private Function PC(a As Integer,b As Integer)
Static m As Integer,i As Integer
m=0:i=2
i=i + m + 1
m=i + a + b
PC=m
End Function
程序运行后,输出的结果为( )。
A. java.awt.panel
B. java.applet.Applet
C. java.awt.frame
D. java.awt.Window
[单项选择]有如下程序: Private Sub Command1_Click( ) Dim k As Integer,m As Integer Dim p As Integer k=4:m=1 p=PC(k,m):Print p; p=PC(k,m):Print p End Sub Private Function PC(a As Integer,b As Integer) Static m As Integer,i As Integer m=0:i=2 i=i + m + 1 m=i + a + b PC=m End Function 程序运行后,输出的结果为
A. 4 6
B. 6 6
C. 8 8
D. 10 12
[单项选择]有如下程序:Private Sub Command1_Click( ) Dim k As Integer,m As Integer Dim op As Integer k=4:m=1 op:PPC(k,m):Print op; op:PPC(k,m):Print opEnd SubPrivate Function,PPC(a As Integer,b As Integer) Static m As Integer,i As Integer m=0:i=2 i=i+m+1 m=i+a+b PPC=mEnd Function程序运行后,输出的结果为
A. 4 6
B. 6 6
C. 8 8
D. 10 12
[单项选择]有如下程序: Private Sub Command1_Click( ) Dim k As Integer,m As Integer Dim op As Integer k=4:m=1 op=PPC(k,m):Print op; op=PPC(k.m):Print op End Sub Private Function PPC(a As Integer,b As Integer) Static m As Integer,i As Integer m=0:i=2 i=i+m+1 m=i+a+b PPC=m End Function 程序运行后,输出的结果为
A. 4 6
B. 6 6
C. 8 8
D. 10 12
[单项选择]有如下的程序。 Private Sub Commandl_Click( ) Dim k As Integer, m As Integer Dim P As Integer k=4: m=1 P=Fun(k, m) : Print P; P = Fun ( k, m) : Print P End Sub Private Function Fun( a As Integer, b As Integer) Static m As Integer, i As Integer m=5:i=2 i=i+m+1 m=i + a + b Fun=m/2 End Function 单击命令按钮后,输出结果为
A. 2 2
B. 4 4
C. 5 5
D. 6
[单项选择]有如下的程序:
Private Sub Command1_Click( )
Dim k As Integer,m As Integer
Dim P As Integer
k=4:m=1
P=Pid(k,m) :Print P;
P=Pid(k,m) :Print P
End Sub
Private Function Pid(a As Integer,b As Integer)
Static m As Integer,i As Integer
m=5:i=2
i=i + m + 1
m=i + a + b
Pid=m/2
End Function
单击命令按钮后,输出结果为( )。
A. 标准模块也称程序模块文件,扩展名是.bas
B. 标准模块由程序代码组成
C. 标准模块只用来定义一些通用的过程
D. 标准模块不附属于任何一个窗体