[单选题]

编写如下程序: Private Sub Form. Click() a$=: "4321": b$="abcd" For 3=1 To 4 Print Mid$(a$,5-j,1)+Nid$(b$, j, 1); Next j Print End Sub 程序运行后,单击窗体,其输出结果为 ______。

A.alb2c3d4

B.b4c3d2el

C.eld2c3b4

D.la2b3c4d

参考答案与解析:

相关试题

编写如下事件过程:Private Sub Form. Click() Dim C

[单选题]编写如下事件过程: Private Sub Form. Click() Dim Char As String,i As Integer Const ch$="#" msg$= "Enter a String:" char=InputBox$(msg$) n=Len(Char) For i=1 To n If Mid$(char,i,1)=ch$ Then Exit For End If Next i Print i - 1 End Sub 其中InputBox函数的功能是弹出一个输入对话

  • 查看答案
  • 有如下程序::Private Sub Form. Click()Dim i As

    [单选题]有如下程序:: Private Sub Form. Click() Dim i As Integer,sum As Integer sum=0 For i=2 To 10 If i Mod 2 <>0 And i Mod 3=0 Then sum=sum+i End If Next i Print sum End Sub 程序运行后,单击窗体,输出结果为______。A. 12B.30C.24D.18

  • 查看答案
  • 下面程序: Private Sub Form. _Click () Dim x,

    [单选题]下面程序: Private Sub Form. _Click () Dim x, y, z As Integer x=5 y=7 z=0 Call P1(x, y, z) Print Str (z) End Sub Sub P1 (ByVal a As Integer, ByVal b As Integer , c As Integer) c= a+b End Sub 运行后的输出结果为______。A.0B.12C.Str(z)D.显示错误信息

  • 查看答案
  • 编写如下事件过程:Private Sub Form. MouseDown(But

    [单选题]编写如下事件过程: Private Sub Form. MouseDown(Button As Integer,Shift As Integer,X As Single, Y As Single) If Shift=6 And Button=2 Then Print "BBBB" End If End Sub 程序运行后,为了在窗体上输出“BBBB”,应执行的操作为 ______。A.同时按下Shift键和鼠标左键B.同时按下Shift键和鼠标右键C.同时按下Ctrl、Alt键和鼠标左键D.

  • 查看答案
  • 有如下事件过程:Private Sub Form. Click()Dim n

    [单选题]有如下事件过程:Private Sub Form. Click()D.im n As Integerx=0n=InputBox(”请输入一个整数”)F.or i=1 To iF.or j=1 To ix=x+1Next jNext 1Print xE.nd sub程序运行后,单击窗体,如果在输入对话框中输入5,则在窗体上显示的内容是( )。A.13B.14C.15D.16

  • 查看答案
  • 运行下列程序:Private Sub Form. Click()Sum=0For

    [单选题]运行下列程序: Private Sub Form. Click() Sum=0 For i=1 To 100 If Mid(CStr(i),1, 1)="1" Then Sum=Sum+1 End If Next i Print Sum End Sub 单击窗体后,在窗体上显示的结果是A.12B.13C.14D.15

  • 查看答案
  • 编写如下事件过程:Private Sub Form. KeyDown(KeyCo

    [单选题]编写如下事件过程: Private Sub Form. KeyDown(KeyCode As Integer,Shift As Integer) If(Button And 3)=3 Then Print "AAAA" End If End Sub 程序运行后,为了在窗体上输出"AAAA",应按下的鼠标键为 ______。A.左B.右C.同时按下左、右D.按什么键都不显示

  • 查看答案
  • 编写如下事件过程:Private Sub Form. KeyDown (KeyC

    [单选题]编写如下事件过程: Private Sub Form. KeyDown (KeyCode As Integer, Shift As Integer) Print Chr (KeyCode) End Sub Private Sub Form_KeyPress( KeyAscii As Integer) Print Chr(KeyAscii) End Sub 在一般情况下(即不按住Shift键和锁定大写键时)运行程序,若按“T”键,则程序输出的结果是A.T TB.t TC.T tD.t t

  • 查看答案
  • 有人编写了如下程序:Private Sub Form_Click()Dim s

    [单选题]有人编写了如下程序:Private Sub Form_Click()D.im s As Integer,x As Integers=0x=0D.o While s=10000x=x+1s=s+x^2LoopPdnt sE.nd Sub上述程序的功能是:计算s=1+22+32+…+n2+…,直到s>10000为止。程序运行后,发现得不到正确的结果,必须进行修改。下列修改中正确的是A.把x=0改为x=1B.把Do While s=10000改为Do While s<=10000C.把Do

  • 查看答案
  • 对窗体编写如下事件过程:Private Sub Form. _ MouseDow

    [单选题]对窗体编写如下事件过程: Private Sub Form. _ MouseDown(BuRon As Integer,Shift As Integer, X As Single, Y As Single) If Button=2 Then Print "AAAAA" End If End Sub Private Sub Form_MouseUp(Button As Integer,Shift As Integer,X As Single, Y As Single) Print "BBBB

  • 查看答案
  • 编写如下程序:Private Sub Form. Click()a$=: "43