Private Sub Command1_Click()
Print Fun(23, 18)
E.nd Sub
Public Function Fun(m As Integer, n As Integer) As Integer
D.o While m <> n
D.o While m > n: m=m - n: Loop
D.o While m < n: n=n - m: Loop
Loop
F.un=m
E.nd Function
A.0
B.1
C.3
D.5
[单选题]单击命令按钮时,下列程序的运行结果为 Private Sub Command1_Click() Print MyFund(20,18) End Sub Public Function MyFund(m As Integer,n As Integer)As Integer Do While m<>n Do While m>n:m=m-n:Loop Do While m<n:n=n-m:Loop Loop MyFund=m End FunctionA.0B.2C.4D.6
[单选题]单击命令按钮时,下列程序的执行结果为Private Sub Command1_Click()D.im x As Integer, y As Integerx=12: y=32C.all PCS(x, y)Print x; yE.nd SubPublic Sub PCS(ByVal n As Integer, ByVal m As Integer)n=n Mod 10m=m Mod 10E.nd SubA.12 32B.2 32C.2 3D.12 3
[单选题]单击命令按钮时,下列程序的执行结果为 Private Sub Command1_Click( ) Dim x As Integer,y As Integer x=12:y=32 Call Proc(x,y) Print x;y End Sub Public Sub Proc(n As Integer,ByVal m As Integer) n=n Mod 10 m=m Mod 10 End SubA.12 32B.2 32C.2 3D.12 3
[单选题]单击命令按钮时,下列程序的执行结果为 Private Sub Command1_Click() Dim x As Integer,y As Integer x=50:y=78 Call PPP(x,y) Print x;y End Sub Public Sub PPP(ByVal n As Integer,ByValm As Integer) n=n/10 m=m/10 End SubA.08B.50 78C.450D.78 50
[单选题]单击命令按钮时,下列程序的执行结果是Private Sub Command1_Click()B.T 4E.nd SubPrivate Sub BT(x As Integer)x=x*2 + 1If x < 6 ThenC.all BT(x)E.nd Ifx=x 2Print x;E.nd SubA.15B.16C.17D.18
[单选题]单击命令按钮时,下列程序的执行结果是Private Sub Command1_Click()D.im a As Integer, b As Integer, c As Integera=3∶b=4∶c=5Print SecProc(c, b, a)E.nd SubF.unction FirProc(x As Integer, y As Integer, z As Integer)F.irProc=2 * x + y + 3 * z+2E.nd FunctionF.unction SecProc(
[单选题]单击命令按钮时,下列程序的执行结果是 Private Sub Command1_Click() Dim a As Integer,b As Integer,C As Integer a=3 b=4 c=5 Print SecProc(c,b,A)End Sub Function FirProc (x As Integer,y As Integer,z As Integer) FirProc=2 * x + y + 3 * z+2 End Function Function SecProc (x
[单选题]单击命令按钮时,下列程序的执行结果是 Private Sub Command1_Click( ) Dim a As Integer,b As Integer,c As Integer a=3 b=4 C=5 Print SecProc(c,b,A)End Sub Function Fir Proc(x As Integer,y As Integer,z As Integer) Fir Proc=2*x+y+3*z End Function Function SecProc(x As Intege
[单选题]单击命令按钮时,下列程序的运行结果为Private Sub Command1_Click()Print Fun(23,18)E.nd SubPublic Function Fun(m As Integer,n As Integer) As IntegerD.O While m<>nD.O While m>n:m=m-n:LoopD.O While m<n:n=n-m:LoopLoopF.un=mE.nd FunctionA.0B.1C.3D.5
[单选题]单击命令按钮时,下列程序的运行结果为 Private Sub Command1_Click( ) Print Fun(23, 18) End Sub Public Function Fun(m As Integer, n As Integer) As Integer Do Whilem <> n Do While m > n : m--m - n: Loop Do While m < n : n=n - m: Loop Loop Fun =m End FunctionA.0B.1C.3D.5