单击命令按钮时,下列程序段的执行结果是( )。 Private Sub Command1 Click( ) Dim a As Integer,b As Integer,C As Integer a=2:b=4:c=6 Call S1(a.b) Print"a=";a;"b=";b;"c=";c Call S2(a,b) Print"a=";a;"b=";b;"c=";c; End Sub Private Sub S1(X.As Integer,Y As Integer) Dim C As Integer x=2*X:y=y+2:c=x+y End Sub Sub S2(x As Integer,ByVal Y As Integer) Dim e As Integer x=2*x:Y=Y+2:e=x+y End SubA.a=4 b=6 c=6 a=4 b=6 c=6B.a=8 b=6 c=6 a=8 b=6 c=6C.a=4 b=6 c=6 a=8 b=6 c=6D.a=8 b=6 c=6 a=4 b=6 c=6

单击命令按钮时,下列程序段的执行结果是( )。 Private Sub Command1 Click( ) Dim a As Integer,b As Integer,C As Integer a=2:b=4:c=6 Call S1(a.b) Print"a=";a;"b=";b;"c=";c Call S2(a,b) Print"a=";a;"b=";b;"c=";c; End Sub Private Sub S1(X.As Integer,Y As Integer) Dim C As Integer x=2*X:y=y+2:c=x+y End Sub Sub S2(x As Integer,ByVal Y As Integer) Dim e As Integer x=2*x:Y=Y+2:e=x+y End Sub

A.a=4 b=6 c=6 a=4 b=6 c=6

B.a=8 b=6 c=6 a=8 b=6 c=6

C.a=4 b=6 c=6 a=8 b=6 c=6

D.a=8 b=6 c=6 a=4 b=6 c=6


相关考题:

( 16 )若看到程序中有以下事件过程,则可以肯定的是,当程序运行时Private Sub Click_MouseDown(Button As Integer,_Shift As Integer,X As Single,Y As Single)Print “ VB Program ”End SubA )用鼠标左键单击名称为 “ Command1 ” 的命令按钮时,执行此过程B )用鼠标左键单击名称为 “ MouseDown ” 的命令按钮时,执行此过程C )用鼠标左键单击名称为 “ MouseDown ” 的控件时,执行此过程D )用鼠标左键或右键单击名称为 “ Click ” 的控件时,执行此过程

在窗体上画一个名称为Command1的命令按钮,然后编写如下程序: Private Sub Command1_Click() Dim x As Integer Static y As Integer Cls x=x+5 y=y+3 Print x,y End Sub 程序运行时,两次单击命令按钮Command1后,窗体显示的结果是( )。A.10 6B.5 6C.5 3D.10 3

在窗体上画一个命令按钮,然后编写如下程序:Dim x As IntegerSub inc(a As Integer)x=x+aEnd SubPrivate Sub Command1_Click()inc 2inc 3inc 4Msgbox x;End Sub程序执行后,单击Command1命令按钮,消息框显示结果是【 】。

在窗体上画一个命令按钮,然后编写如下程序(假定变量x是—个窗体级变量)Dim x As IntegerSub inc(a AS Integer)X=K+aEnd SubPrivate Sub Command1_Click()inc2inc3inc4Prmt x;Ead Sub程序执行后,单击Command1命令按钮,输出的结果是【 】。

在窗体中有一个名为(Command1的命令按钮,Click事件的代码如下:单击命令按钮后,标签显示的结果是( )。

若看到程序中有以下事件过程,则可以肯定的是,当程序运行时( )。 Private Sub Click MouseDown(Button As Integer,Shift As Integer,X As Single,Y As Single) Print”Visual Basic Program” End SubA. 用鼠标左键单击名称为“Command1”的命令按钮时,执行此过程B. 用鼠标左键单击名称为“MouseDown”的命令按钮时,执行此过程C. 用鼠标右键单击名称为“MouseDown”的控件时,执行此过程D. 用鼠标左键或右键单击名称为“Click”的控件时,执行此过程

现有如下一段程序: Option Base 1 Privalc Sub Command1 Click( ) Dim a a=Array(3,5,7,9‘) x=1 For i=4,10 j Step-1 s=s+a(i)*X x=x*10 Next i Print s End Sub 执行程序,单击Command1命令按钮键,执行上述事件过程,输出结果是( )。A.9753B.3579C.35D.79

若看到程序中确以下事件过程,则可以肯定的是,当程序运行时( )。 Private Sub Click—MouseDown(Button As Integer,Shift As Integer,X As Single,Y As Single) Print"VB Program" End SubA.用鼠标左键单击名称为“Command1”的命令按钮时,执行此过程B.用鼠标左键单击名称为“MouseDown”的命令按钮时,执行此过程C.用鼠标右键单击名称为“MouseDown”的命令按钮时,执行此过程D.用鼠标左键或右键单击名称为“Click”的命令按钮时,执行此过程

若看到程序中确以下事件过程,则可以肯定的是,当程序运行时( )。Private Sub Click—MouseDown(Button As Integer,Shift As Integer,X As Single,YAs Single)PrintVB ProgramEnd SubA.用鼠标左键单击名称为“Command1”的命令按钮时,执行此过程B.用鼠标左键单击名称为“MouseDown”的命令按钮时,执行此过程C.用鼠标右键单击名称为“MouseDown”的命令按钮时,执行此过程D.用鼠标左键或右键单击名称为“Click”的命令按钮时,执行此过程

在窗体上画一个名为Command1的命令按钮,编写如下程序:程序运行后,单击命令按钮,输出的结果是_________。