【简答题】有如下SUB过程: Sub s(x As Single,y As Single) t =x x=t / y Y=t Mod y End Sub 在窗体上添加一个命令按纽,然后编写如下事件过程: Private Sub Form_ Click() Dim a As Single Dim b As Single a=5 b=4 s a,b Print a,b End Sub 则程序运行后,单击命令按纽...
【单选题】编写如下通用过程: Sub Proc(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 Proc a, b Print a, b En...
【单选题】(12)有下列Sub过程: Sub Sub(x As Single,y As Single) t=x x=t/y y=t Mody End Sub 在窗体上的命令按钮Commandl中,编写下列事件过程,执行该事件过程调用Sun过程,结果是( )。 Private Sub Commandl_Click() Dim a As Single Dim b As Single a=5 b=4 Sun a,...
【简答题】有如下SUB过程: Sub s(x As Single,y As Single) t=x x=t / y y=t Mod y End Sub 在窗体上添加一个命令按钮,然后编写如下事件过程: Private Sub Form_Click() Dim a As Single Dim b As Single a=5 b=4 s a,b Print a,b End Sub 则程序运行后,单击命令按钮,输...
【单选题】( 35 )假定有如下的 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...