[单选题]

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

Private Sub Command1_Click()

B.T 4

E.nd Sub

Private Sub BT(x As Integer)

x=x * 2 + 1

If x < 6 Then

C.all BT(x)

E.nd If

x=x * 2

Print x;

E.nd Sub( )。

A.15

B.16

C.17

D.18

参考答案与解析:

相关试题

单击命令按钮时,下列程序的执行结果为 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()Print MyBM(23, 18)E.nd SubPublic Function MyBM(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: LoopLoopMyBM=mE.nd Function( )。A.0B

  • 查看答案
  • 单击一次命令按钮后,下列程序的执行结果是 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

  • 查看答案
  • 单击命令按钮,下列程序的执行结果为 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

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

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

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

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

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

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