假定有如下的Sub过程:Sub fun(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 = 6 b = 4 fun a, b Print a, bEnd Sub程序运行后,单击命令按钮,输出结果为()。
假定有如下的Sub过程:Sub fun(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 = 6 b = 4 fun a, b Print a, bEnd Sub程序运行后,单击命令按钮,输出结果为()。
A.5 4
B.1 1
C.1.25 4
D.1.5 2
正确答案:1.5 2
Tag:VisualBasic程序设计 按钮 命令
时间:2021-11-29 15:20:42
- 上一篇:要分配存放如下方阵的数据,正确的且最节约存储空间的数组声明语句是()。 1.1 2.2 3.3 4.4 5.5 6.6 7.7 8.8 9.9
- 下一篇:假定有以下函数过程:Function Fun(s As String) As String Dim s1 As String For i = 1 To Len(s) s1 = UCase(Mid(s, i, 1)) + s1 Next i Fun = s1End Function在窗体上添加一个命令按钮,然后编写如下事件过程:Private Sub Command1_Click() Dim Str1 As String Dim Str2 As String Str1 = InputBox(“请输入一个字符