单击一次窗体之后,下列程序代码的执行结果为______。 Private Sub Command1_ Click() Dim x As Integer, y As Integer, z As Integer x = 1:

admin2009-07-23  24

问题 单击一次窗体之后,下列程序代码的执行结果为______。    Private Sub Command1_ Click()       Dim x As Integer,  y As Integer,  z As Integer       x = 1: y = 2: z = 3       Call fun1 (x,  y,  z)       Print x; y; z       Call fun2(x, y, z)       Print x; y;  z    End Sub    Private Sub fun1(x As Integer, y As Integer, z As Integer)       x = 10 * z       y=z*z+ x       z=x+ y+ z    End Sub    Private Sub fun2 (ByVal x As Integer, ByVal y As Integer, ByVal z As Integer)       x=10*z       y=z*z+ x       z=x+ y +z    End Sub

选项 A、1 2 3        30 39 72
B、1 2 3    1 2 3
C、30 39 72    1 2 3
D、30 39 72    30 39 72

答案D

解析
转载请注明原文地址:https://jikaoti.com/ti/thq0FFFM
0

最新回复(0)