[单选题]

单击命令按钮时,下列程序的运行结果为

Private Sub Command1_Click()

Print MyBM(23, 18)

E.nd Sub

Public Function MyBM(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

MyBM=m

E.nd Function( )。

A.0

B.1

C.3

D.5

参考答案与解析:

相关试题

单击命令按钮时,下列程序的执行结果为 PrivateSubCommand1_Cl

[单选题]单击命令按钮时,下列程序的执行结果为Private Sub Command1_Click()D.im a As Integer, b As Integer, c As Integera=2: b=3: c=4Print P2(c, b, A.E.nd SubPrivate Function P1(x As Integer, y As Integer, z As Integer)P1=2 * x + y + 3 * zE.nd FunctionPrivate Function P2(x As In

  • 查看答案
  • 单击命令按钮时,下列程序的执行结果为 PrivateSubCommand1_Cl

    [单选题]单击命令按钮时,下列程序的执行结果为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 Sub( )。A.12 32B.2 32C.2 3D.12 3

  • 查看答案
  • 单击命令按钮时,下列程序的执行结果是 PrivateSubCommand1_Cl

    [单选题]单击命令按钮时,下列程序的执行结果是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 Sub( )。A.15B.16C.17D.18

  • 查看答案
  • 单击命令按钮,下列程序的执行结果为 PrivateSubCommand1_Cli

    [单选题]单击命令按钮,下列程序的执行结果为Private Sub Command1_Click()D.im x As Integer, y As Integerx=32: y=42C.all PCS(x, y)Print x; yE.nd SubPublic Sub PCS(Byval n As Integer, ByVal m As Integer)n=n Mod 10+1m=m Mod 10+1E.nd Sub ( )。A.32 42B.2 32C.2 3D.12 3

  • 查看答案
  • 单击命令按钮时,下列的执行结果为 PrivateSubCommand1_Clic

    [单选题]单击命令按钮时,下列的执行结果为Private Sub Command1_Click()D.im x As Integer, y As Integerx=86: y=29C.all Proc(x, y)Print x; yE.nd SubPublic Sub Proc(n As Integer, ByVal m As Integer)n=n Mod 10m=m Mod 10E.nd Sub( )。A.12 32B.6 29C.2 3D.12 3

  • 查看答案
  • 单击命令按钮,下列事件过程的执行结果为 PrivateSubCommand1_C

    [单选题]单击命令按钮,下列事件过程的执行结果为Private Sub Command1_Click()D.im x As Integer, y As Integerx=40: y=72C.all PtoP(x, y)Print x; yE.nd SubPublic Sub PtoP(Byval n As Integer, ByVal m As Integer)n=n \ 10+2m=m \ 10+2E.nd Sub( )。A.0 8B.40 72C.4 50D.78 50

  • 查看答案
  • 单击命令按钮时,下列程序的运行结果为 Private Sub Command1_

    [单选题]单击命令按钮时,下列程序的运行结果为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

  • 查看答案
  • 单击命令按钮时,下列程序的运行结果为 Private Sub Command1_

    [单选题]单击命令按钮时,下列程序的运行结果为 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

  • 查看答案
  • 单击一次命令按钮后,下列程序的执行结果是 PrivateSubCommand1_

    [单选题]单击一次命令按钮后,下列程序的执行结果是Private Sub Command1_Click()s=P(1) + P(2) + P(3) + P(4)Print sE.nd SubPublic Function P(N As Integer)Static SumF.or i=1 To NSum=Sum + iNext iP=SumE.nd Function( )。A.15B.25C.35D.45

  • 查看答案
  • 程序运行后,单击命令按钮Command1时的输出结果为( )。

    [单选题]程序运行后,单击命令按钮Command1时的输出结果为( )。A. A(5)=5B. A(5)=10C. A(5)=20D. A(5)=40

  • 查看答案
  • 单击命令按钮时,下列程序的运行结果为 PrivateSubCommand1_Cl