假定有如下的Sub过程:Sub sfun(x As Single,y As Single)t=xx=t/yy=t Mod yEnd Sub在窗体上添加一个命令按钮(名为Command1),然后编写如下事件过程:Private Sub Command1_Click()Dim a as singleDim b as singlea=5b=4sfun a,bMsgBox a chr(10)+chr(13) bEnd Sub打开窗体运行后,单击命令按钮,消息框的两行输出内容分别为A.1和1B.1.25和1C.1.25和4D.5和4
假定有如下的Sub过程:
Sub sfun(x As Single,y As Single)
t=x
x=t/y
y=t Mod y
End Sub
在窗体上添加一个命令按钮(名为Command1),然后编写如下事件过程:
Private Sub Command1_Click()
Dim a as single
Dim b as single
a=5
b=4
sfun a,b
MsgBox a & chr(10)+chr(13)& b
End Sub
打开窗体运行后,单击命令按钮,消息框的两行输出内容分别为
A.1和1
B.1.25和1
C.1.25和4
D.5和4
相关考题:
有如下SUB过程:Sub s(x As Single,y As Single)t=xx=t / yy=t Mod yEnd Sub在窗体上添加一个命令按钮,然后编写如下事件过程:Private Sub Form_Click()Dim a As SingleDim b As Singlea=5b=4s a,bPrint a,bEnd Sub则程序运行后,单击命令按钮,输出的结果为【 】 。
假定有如下的Sub过程: Sub sfun(x As Single,y As Single) t=x x=t/y y=t Mod y End Sub 在窗体上添加一个命令按钮(名为Command1),然后编写如下事件过程: Private Sub Command1 Click() Dim a as single Dim b as single a=5 b=4 sfun a,b MsgBox a chr(10)+chr(13)b End Sub 打开窗体运行后,单击命令按钮,消息框的两行输出内容分别为( )。A.1n1B.1.25和1C.1.25和4D.5和4
有如下SUB过程:Sub s(x As Single,y As Single)t =xx=t / yY=t Mod yEnd Sub在窗体上添加一个命令按纽,然后编写如下事件过程:Private Sub Form_ Click()Dim a As SingleDim b As Singlea=5b=4s a,bPrint a,bEnd Sub则程序运行后,单击命令按纽,输出的结果为:【 】。
假定有如下的Sub过程: sub sfun(x As Single,y As Single) t=x x=t/y y=t Mod y End Sub 在窗体上添加一个命令按钮(名为Command1),然后编写如下事件过程: Private Sub Command1_Click() Dim a as single Dim b as single a=5 b=4 sfun a,b MsgBox a chr(10)+chr(13) b End Sub 打开窗体运行后,单击命令按钮,消息框的两行输出内容分别为 ______。A.1和1B.1.25和1C.1.25和4D.5和4
假定有如下的Sub过程:Sub sfun(x As Single,y As Single)t=xx=t/yy=t Mod yEnd Sub在窗体上添加一个命令按钮(名为Command1),然后编写如下事件过程:Private Sub Command1_Click()Dim a As singleDim b As singlea=5b=4sfun a,bMsgBox a chr(10)+chr(13)bEnd Sub打开窗体运行后,单击命令按钮,消息框的两行输出内容分别为( )。A.1和1B.1.5和1C.1.25和4D.5和4
假定有如下的Sub过程: Sub sfun(x As Single,y As Single) t=x x=t/y y=t Mod y End Sub 在窗体上添加一个命令按钮(名为Command1),然后编写如下事件过程: Private Sub Command1_Click() Dim a As single Dim b As single a=5 b=4 sfun a,b MsgBox a chr(10)+chr(13)b End Sub 打开窗体运行后,单击命令按钮,消息框的两行输出内容分别为( )。A.1和1B.1.25和1C.1.25和4D.5和4
假定有如下的Sub过程: Sub sfun(x As Single,y As SinglE)t=x x=t/y y=t Mod y End Sub 在窗体上添加一个命令按钮(名为Command1),然后编写如下事件过程: Private Sub Command1_Click( ) Dim a as single Dim b as single a=5 b=4 sfun a,b MsgBox a char(10A.1和1B. 1.25和1C. 1.25和4D. 5和4
假定有如下的Sub过程: sub sfun(x As Single, y As Single. t=x x=t/y y=t Mod y End Sub 在窗体上添加一个命令按钮(名为Command1.,然后编写如下事件过程: Private Sub Command1_Click(. Dim a as single Dim b as single a=5 b=4 sfun(a,b. MsgBox a chr(10.+chr(13. b End Sub 打开窗体运行后,单击命令按钮,消息框的两行输出内容分别为A.1和1mB.1.25和1C.1.25和4D.5和4
假定有如下的Sub过程: Sub sfun(X As Single,Y As Single)t=Xx=t/yY=tModYEnd Sub在窗体上添加一个命令按钮(名为Commandl),然后编写如下事件过程: Private Sub Commandl_Click() Dim aAs singleDimbAs singlea=5b=4sfun a,bMsgBox a&;chr(10)+chr(131&;bEndSub打开窗体运行后,单击命令按钮,消息框的两行输出内容分别为( )。A.1和1B.1.25和1C.1.25和4D.5和4
假定有如下的Sub过程: Sub sfun(X As Single,y As Single)t=XX=t/yY=tModYEndSub在窗体上添加一个命令按钮(名为Commandl),然后编写如下事件过程。 Private Sub Commandl Click( ) Dim aAs singleDimbAs singlea=5b=4sfun a,bMsgBOX a&;chr(10)+chr(13)&;bEndSub打开窗体运行后,单击命令按钮,消息框的两行输出内容分别为( )。A.1和1B.1.25和1C.1.25和4D.5和4