[单选题]

( 35 )假定有如下的 Sub 过程:

Sub sfun ( x As Single , y As Single )

t=x

x=t/y

y=t Mod y

E.nd Sub

在窗体上添加一个命令按钮(名为 Command1 ),然后编写如下事件过程:

Private Sub Command1_Click()

D.im a as single

D.im b as single

a=5

b=4

sfun a , b

MsgBox a & chr ( 10 ) +chr ( 13 ) & b

E.nd Sub

打开窗体运行后,单击命令按钮,消息框的两行输出内容分别为

A. ) 1 和 1

B. ) 1.25 和 1

C. ) 1.25 和 4

D. ) 5 和 4

参考答案与解析:

相关试题

假定有如下的Sub过程:Sub sfun(xAsSingle,y As Sing

[单选题]假定有如下的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 打开窗体运行后,单击命令按钮,

  • 查看答案
  • 假定有如下的Sub过程:sub sfun(x As Single,y As Si

    [单选题]假定有如下的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 打开窗体运行后,单击命令按钮

  • 查看答案
  • 假定有如下的Sub过程:Sub sfun(x As Single,y As Si

    [单选题]假定有如下的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 S

    [单选题]假定有如下的Sub过程:Sub sfun(x As Single,y As Single)t=xx=t/yy=t Mod yE.nd Sub在窗体上添加一个命令按钮(名为Command1),然后编写如下事件过程:Private Sub Command1_Click()D.im a As singleD.im b As singlea=5b=4sfun a,bMsgBox a & chr(10)+chr(13)&bE.nd Sub打开窗体运行后,单击命令按钮,消息框的两行输出内容分

  • 查看答案
  • 若有如下Sub过程:Sub sfun(x As Single,y As Sing

    [单选题]若有如下Sub过程:Sub sfun(x As Single,y As Single)t=Xx=t/yy=t Mod YE.nd Sub在窗体中添加一个命令按钮Command33,对应的事件过程如下:Private Sub Command33_Click()D.im a As SingleD.im b As Singlea=5: b=4sfun a,bMsgBox a&chr(10)+chr(13)&bE.nd Sub打开窗体运行后,单击命令按钮,消息框中有两行输出,内容分别为A.1和1

  • 查看答案
  • 假定有如下的Sub过程: Sub Sub1(x As Single, y As

    [单选题]假定有如下的Sub过程:Sub Sub1(x As Single, y As single)t=xx=t / yy=t Mod yE.nd Sub在窗体上画一个命令按钮,然后编写如下事件过程:Private Sub Command1_Click()D.im a As SingleD.im b As Singlea=5b=4Sub1 a,bPrint a;bE.nd Sub程序运行后,单击命令按钮,输出结果为A.54B.] 1]]1C.] 1.2]]5.4D.] 1.

  • 查看答案
  • 假定有如下的Sub过程:Sub Sub1 (x As Single, y As

    [单选题]假定有如下的Sub过程:Sub Sub1 (x As Single, y As Single) t=x x = t/y y = t Mod yEnd Sub 在窗体上画一个命令按钮,然后编写如下事件过程:Private Sub Command1_ Click() Dim a As Single Dim b As Single a = 5 b = 4 Sub1 a, b Print a; b End Sub 程序运行后,单击命令按钮,输出结果为______。A.5 4B.1 1C.1.2 5.4D

  • 查看答案
  • 假定有如下的Sub过程: Sub Sub1(x As Single,y As s

    [单选题]假定有如下的Sub过程:Sub Sub1(x As Single,y As single)t=xx=t/yy=t Mod yE.nd Sub在窗体上画一个命令按钮,然后编写如下事件过程:Private Sub Command1_click()D.im a As SingleD.im b As Singlea=5b=4Sub1 a,bPrint a;bE.nd Sub程序运行后,单击命令按钮,输出结果为A.B.C.D.

  • 查看答案
  • 假定有如下的Sub过程:Sub S(x As Single,y As Singl

    [单选题]假定有如下的Sub过程: Sub S(x As Single,y As Single) t=x x=t/y y=t Mod y End Sub 在窗体上画一个命令按钮,然后编写如下事件过程: Private Sub Command1_Click() Dim a As Single Dim b As Single a=5 b=2 S a,b print a,b End Sub 程序运行后,单击命令按钮,输出结果是( )。A.5 2B.1 1C.1.25 4D.2.5 1

  • 查看答案
  • 假定有如下的Sub过程:Sub S(x As Single,y As Singl

    [单选题]假定有如下的Sub过程: Sub S(x As Single,y As Single) t=x x=t/y y=t Mod y End Sub 在窗体上画一个命令按钮,然后编写如下事件过程: Private Sub Command1_Click() Dim a As Single Dim b As Single a=5 b=4 S a,b Print a,b End Sub 程序运行后,单击命令按钮,输出结果为 ______ 。A.5 4B.1 1C.1.25 4D.1.25 1

  • 查看答案
  • ( 35 )假定有如下的 Sub 过程:Sub sfun ( x As Sing