[单选题]在窗体上画一个命令按钮,然后编写下列程序 Private Sub Command3_Click( ) Tcl 2 Tcl 3 Tel 4 End Sub Sub Tcl(a As Integer) Static x As Integer x=x + a Print x; End Sub 程序运行后,单击命令按钮,输出结果为A.2 3 4B.2 5 9C.3 5 4D.2 4 3
[单选题]在窗体上画一个命令按钮,然后编写下列程序: Private Sub Command1 click( ) Dim a As Single,b As Single a=6:b=2 RC a,b Print a,b End Sub Sub RC(x As Single,y As Single) i=x x=i/y y=i Mod y End SubA.4 3B.1 1C.3 0D.2 6
[单选题]在窗体上面一个命令按钮,然后编写如下事件过程:Private Sub Commandl_Click()MsgBox Str(123+321)E.nd Sub程序运行后,单击命令按钮,则在信息框中显示的提示信息为A.字符串“123+321”B.字符串“444”C.数值“444”D.空白
[单选题]在窗体上有一个命令按钮,然后编写如下事件过程。 Private Sub Command1_Click() Dim a(5)As String FOR i=1 To 5 a(i)=Chr(Asc("A")+(i-1)) Next For Each b h a Print b; Next End Sub 程序运行后,单击命令按钮,输出结果是A.ABCDEB.1 2 3 4 5C.abcdeD.出错信息
[单选题]在窗体上有一个命令按钮,然后编写如下事件过程 Private Sub Command1 _ cickc ( ) a=InputBox("enter the first integer") b=InputBox("enter the second integer") Print b + a End Sub 程序运行后,单击命令按钮,先后在两个输入框中分别输入“2”和“6”,则输出结果为A.2B.62C.8D.26
[单选题]在窗体上有一个命令按钮,然后编写如下事件过程:Private Sub Command1_Click()D.im a(5) As StringF.OR i=1 To 5a(i) =Chr(Asc("A") +(i-1))NextF.or Each b In aPrint b;NextE.nd Sub程序运行后,单击命令按钮,输出结果是A.ABCDEB.1 2 3 4 5C.abcdeD.出错信息
[单选题]在窗体画一个命令按钮,然后编写如下事件过程: Private Sub Commandl Click() Dim a(5)As String For i=1 To 5 a(i)=Chr(Asc("A")+(i-1)) Next i For Each b In a Print b; Next End Sub 程序运行后,单击命令按钮,输出结果是______。A. ABCDEB.1 2 3 4 5C.abcdeD.出错信息
[单选题]在窗体上有一个命令按钮,然后编写如下事件过程。Private Sub Command1_Click()D.im a(5)As StringF.OR i=1 To 5a(i)=Chr(Asc("A")+ (i-1))NextF.or Each b In aPrint b;NextE.nd Sub程序运行后,单击命令按钮,输出结果是A.ABCDEB.1 2 3 4 5C.abcdeD.出错信息
[单选题]在窗体画一个命令按钮,然后编写如下事件过程: Private Sub Command1_Click() Dim a(5)As String For i=1 To 5 a(I)=Chr(Asc("A")+(i-1)) Next i For Each b In a Print b; Next End Sub 程序运行后,单击命令按钮,输出结果是______。A.ABCDEB.1 2 3 4 5C.abcdeD.出错信息
[单选题](29)在窗体上画一个命令按钮,然后编写如下事件过程:Private Sub Command1_Click( )D.im I, NumRandomizeD.oF.or I=1 To 1000Num=Int(Rnd*100)Print Num;Select Case NumC.ase 12E.xit ForC.ase 58E.xit DoC.ase 65, 68, 92E.ndE.nd SelectNext ILoopE.nd Sub上述事件过程执行后,下列描述中正确的是( )。A.)Do 循环执