.jpg)
A.只能为“进入”事件和“单击”事件编写事件过程
B.不能为“进入”事件和“单击”事件编写事件过程
C.“进入”事件和“单击”事件执行的是同一事件过程
D.已经为“进入”事件和“单击”事件编写了事件过程
[单选题]在窗体设计过程中,命令按钮Command0的事件属性设置如下图所示,则含义是( )。A.只能为“进入”事件和“单击”事件编写事件过程B.不能为“进入
[单选题]若在窗体设计过程中,命令按钮Command0的事件属性设置如图所示,则含义是( )。A.只能为“进入”事件和“单击”事件编写事件过程B.不能为“进入
[单选题]在窗体上有一个命令按钮Commandl,通用过程fun和命令按钮的事件过程如下: Private Function fun(By m As Integer) If m Mod 2=0 Then fun=2 Else Fun=1 Else If End Funcion Private Sub Commandl_Click() Dim i Integer,s As Integer s=0 For i=1 To 5 s=s+fun(i) Next Print s End Sub 程序运行后,单击命令按
[单选题]在窗体上有一个命令按钮,然后编写如下事件过程Private Sub Commandl_cickc()a=InputBox( "enter the first integer")b=InputBox( "enter the second integer")Print b + aE.nd Sub程序运行后,单击命令按钮,先后在两个输入框中分别输入"2"和"6",则输出结果为( )。A.2B.62C.8D.26
[单选题]在窗体上画一个命令按钮,然后编写如下事件过程:Private Sub Command1_Click()D.im m As Integer, n As Integer, p As Integerm=3: n=5: p=0C.all Y(m, n, p)Print Str(p)E.nd SubSub Y(ByVal i As Integer, ByVal j As Integer, k As Integer)k=i + jE.nd Sub程序运行后,如果单击命令按钮,则在窗体上显示的内容是( )。A
[单选题]在窗体上画一个命令按钮,然后编写如下事件过程:Private Sub Command1_Click()D.im a(5) As StringF.or i = 1 To 5a(i) = Chr(Asc("A") + (i - 1))Next iF.or Each b In aPrint b;NextE.nd Sub程序运行后,单击命令按钮,输出结果是( )。A.ABCDEB.1 2 3 4 5C.abcdeD.出错信息
[单选题]( 23 )在窗体上画 1 个命令按钮,并编写如下事件过程:Private Sub Command1_Click()F.or i=5 to 1 step -0.8Print Int(i);Next iE.nd Sub运行程序,单击命令按钮,窗体上显示的内容为A. ) 5 4 3 2 1 1B. ) 5 4 3 2 1C. ) 4 3 2 1 1D. ) 4 4 3 2 1 1
[单选题]( 24 )在窗体上画 1 个命令按钮,并编写如下事件过程:Private Sub Command1_Click()D.im a(3,3)F.or m=1 To 3F.or n=1 To 3If n=m Or n=4-m Thena(m,n)=0E.nd IfPrint a(m,n);Next nPrintNext mE.nd Sub运行程序,单击命令按钮,窗体上显示的内容为A. )2 0 00 4 00 0 6B. )2 0 40 4 04 0 6C. )2 3 03 4 00 0 6D. )
[单选题]在窗体上画一个命令按钮,然后编写如下事件过程:PrivateSubcommand1_click()D.imaAsString,bAsStringa=InputBox("EntertheFirstinteger")b=InputBox("EntertheSecondinteger")Printb+aE.ndSub程序运行后,单击命令按钮,先后在两个输入对话框中分别输入456和111,则输出结果是( )A.456B.111C.567D.111456
[单选题]在窗体上画1个命令按钮,并编写如下事件过程:Private Sub Command1-Click()F.or i=5 To 1 Step-0.8Print Int(i);Next iE.nd Sub运行程序,单击命令按钮,窗体上显示的内容为A.5 4 3 2 1 1B.5 4 3 2 1C.4 3 2 1 1D.4 4 3 2 1 l