[单选题]

运行下列程序:

Private Sub form_Click( )

F.or i = 1 To 4

t = t * 10 + i

s = s + t

Next i

Print s

E.nd Sub

单击窗体后,则输出结果是( )。

A.1234

B.4321

C.1370

D.4444

参考答案与解析:

相关试题

运行下列程序:Private Sub form_Click( )For i =

[单选题]运行下列程序:Private Sub form_Click( )F.or i = 1 To 2x = 1F.or j = 1 To 3x = 5F.or k = 1 To 4x = x + 2Next kNext jNext iPrint xE.nd Sub单击窗体后,则输出结果是( )。A.5B.13C.25D.48

  • 查看答案
  • 运行下列程序:Private Sub Form_Click( )For i =

    [单选题]运行下列程序:Private Sub Form_Click( )F.or i = 1 To 20If fun1(i) Thens = s + 1E.nd IfNext iPrint sE.nd SubPrivate Function fun1(y) As BooleanIf y Mod 2 <> 0 Thenfun1 = FalseE.lsefun1 = TrueE.nd IfE.nd Function单击窗体后,则在窗体上显示的结果是( )。A.110B.10C.0D.20

  • 查看答案
  • 运行下列程序:Private Sub Form_Click( )For i =

    [单选题]运行下列程序:Private Sub Form_Click( )F.or i = 3 To 1 Step -1F.or j = 2 To 1 Step -1D.ebug.Print "A"; String(3 - i, "*");Next jNext iE.nd Sub单击窗体后,则在立即窗口内显示结果是( )。A.AAA*A**A***B.AAA*A*A**A**C.A*A*A*A*A*A*D.A***

  • 查看答案
  • 运行下列程序:Private Sub form_Click()t = Val(I

    [单选题]运行下列程序:Private Sub form_Click()t = Val(InputBox("请输入一个数:"))x = t - 1Select Case tC.ase 1 To 10y = 4 * tC.ase Is >10y = 3 * tC.ase Elsey = 2 * tE.nd SelectPrint x; yE.nd Sub运行时,从键盘输入4,输出的结果是()。A.3 16B.4 4C.3 4D.4 10

  • 查看答案
  • 运行下列程序:Private Sub Form_Click( )Dim a As

    [单选题]运行下列程序:Private Sub Form_Click( )D.im a As Integera = 1F.or i = 1 To 5C.all fun1(a)Next iPrint aE.nd SubPrivate Sub fun1(x)y = 2D.ox = x + yLoop Until x > 10E.nd Sub单击窗体后,则在窗体上显示的结果是( )。A.5B.1 2 3 4 5C.19D.7

  • 查看答案
  • 下面程序运行后输出是Private Sub Form_Click()for i=

    [单选题]下面程序运行后输出是Private Sub Form_Click()for i=1 to 4x=1for j=1 to 3x=3for k=1 to 2x=x+6next knext jnext iprint xE.nd SubA.7B.15C.157D.538

  • 查看答案
  • 运行下列程序:Private Sub Form_Click( )Dim x As

    [单选题]运行下列程序:Private Sub Form_Click( )Dim x As Integer, y As String, z As Stringy = &qu运行下列程序:Private Sub Form_Click( )D.im x As Integer, y As String, z As Stringy = "12345"F.or x = 1 To Len(y)z = Mid(Left(y, x), 1)Next xPrint zE.nd Sub单击窗体后,则在窗体

  • 查看答案
  • 运行下列程序:Private Sub form_Click( )Dim sl

    [单选题]运行下列程序:Private Sub form_Click( )Dim sl As String, s2 As Strings1 = "1234&quo运行下列程序:Private Sub form_Click( )D.im sl As String, s2 As Strings1 = "1234"m = 0F.or i = 3 To 1 Step -1m = m + 1s2 = fun1(s1, m)D.ebug.Print s2;Next iE.nd SubPrivat

  • 查看答案
  • 运行下列程序:Private Sub Form_Click( )Dim y As

    [单选题]运行下列程序:Private Sub Form_Click( )Dim y As Integer, x As IntegerDo Until x > 20x运行下列程序:Private Sub Form_Click( )D.im y As Integer, x As IntegerD.o Until x > 20x = x + 10y = y + xIf x > 20 Then Exit DoLoopPrint x, yE.nd Sub单击窗体后,则在窗体上显示的结果是( )。A.1

  • 查看答案
  • 运行下列程序:Private Sub form_Click( )x = Inpu

    [单选题]运行下列程序:Private Sub form_Click( )x = InputBox("请输入一个数:")Select Case xC.ase Is > 0: y = x + 1: x = y + 1C.ase Is = 0: y = x + 2: x = y + 2C.ase Else: y = x + 3: x = y + 3E.nd SelectPrint x; yE.nd Sub从键盘输入1,输出的结果是( )。A.3 2B.2 3C.2 2D.1 4

  • 查看答案
  • 运行下列程序:Private Sub form_Click( )For i =