单选题 VB
题号 #151607

有如下的程序: 
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 
单击命令按钮后,输出结果为(  )。

进入在线模考

参考答案

D

答案解析

暂无解析

你可能感兴趣的试题

A.Function CT(ByVal a As Integer)  
If a Mod 2=0 Then  
Return 0  
Else  
Return 1  
End if  
End Function  
B.Function CT(ByVal a As Integer)  
If a Mod 2=0 Then  
CT=0  
Else  
CT=1  
End if  
End Function  
C.Function CT(ByVal a As Integer)  
If a Mod 2=0 Then  
CT=1  
Else  
CT=0  
End if  
End Function  
D.Function CT(ByVal a As Integer)  
If a Mod 2=0 Then  
Return 1  
Else  
Return 0  
End if  
End Function
找试题 · 找答案 · 找资料 在线模考