更多"单击窗体上Commandl命令按钮时,执行如下事件过程: Priva"的相关试题:
[单项选择]单击窗体上Commandl命令按钮时,执行如下事件过程:
Private Sub Commandl _ Click( )
a$="software and hardware"
b$=Right(a$,8)
c$=Mid(b$,1,8)
Msgbox c$
End sub
则在弹出的信息框的标题栏中显示的信息是( )。
A. software and hardware
B. software
C. hardware
D. and
[单项选择]单击命令按钮时,下列程序的执行结果是 Private Sub Commandl_Click( ) BT 4 End Sub PriVate Sub BT(x As Integer) X=X * 2 + 1 If x <6 Then Call BT(x) End If X=x * 2 Print x; End Sub
A. 15
B. 16
C. 17
D. 18
[单项选择]单击命令按钮时,下列程序的执行结果是( )。
Private Sub Commandl_Click( )
BT 4
End Sub
PriVate Sub BT(x As Integer)
X=X * 2 + 1
If x <6 Then
Call BT(x)
End If
X=x * 2
Print x;
End Sub
[单项选择]单击命令按钮时,下列程序的执行结果为( )。 Private Sub Commandl_Click( ) Dimx As Integer,y As Integer x=50:y=78 CallPPP(x,y) Printx;y End Sub Pubfic Sub PPP(ByValnAsInteger,ByValm As Integer) n=n/10 m=m/10 End Sub
A. 08
B. 50 78
C. 450
D. 78 50
[单项选择]假定有如下的命令按钮(名称为Commandl)事件过程:
Private Sub Commandl_Click( )
x=InputBox("输入:","输入整数")
MsgBox"输入的数据是广","输入数据:"+x
End Sub
程序运行后,单击命令按钮,如果从键盘上输入整数10,则以下叙述中错误的是( )。
A. x的值是数值10
B. 输入对话框的标题是“输入整数”
C. 信息框的标题是“输入数据:10”
D. 信息框中显示的是“输入的数据是:”
[单项选择]单击窗体上Command1命令按钮时,执行如下事件过程: Private Sub Command1-Click( ) a$="software and hardware" b$=Right(a$,8) c$=Mid(a$,1,8) Msgbox a $,,b$;c$,1 End sub 则在弹出的信息框的标题栏中显示的信息是( )。
A. software and hardware
B. software
C. hardware
D. 1
[单项选择]单击窗体上Com mand l命令按钮时,执行如下事件过程: Private Sub Commandl_C1ick( ) a$="software and hardware" b$=Right(a$,8) C$=Mid(b$,1,8) Msgbox c$ End sub 则在弹出的信息框的标题栏中显示的信息是( )。
A. software and hard WaJe
B. software
C. hardware
D. and
[单项选择]单击窗体上Command1命令按钮时,执行如下事件过程
Private Sub Command1_Click( )
a$="software and hardware"
b$=Right(a$,8)
c$=Mid(a$,1,8)
MsgBox a$,b$,c$,1
End Sub
则在弹出的信息框的标题栏中显示的信息是
A. software and hardware
B. software
C. hardware
D. 1
[单项选择]
在窗体上画一个名称为Command l的命令按钮。单击命令按钮时执行如下事件过程:
Private Sub Command 1_Click()
a$=”software and hardware"
b$=Right(a$,8)
c$=Mid(a$, 1,8)
MsgBox a$,,b$,c$, 1
End Sub
则在弹出的信息框标题栏中显示的标题是()
A. software and hardware
B. hardware
C. software
D. 1