单项选择题
单击命令按钮时,下列程序代码的执行结果为
Private Sub Command1_Click( )
Print MyFunc(24,18)
End Sub
Public Function MyFunc(m As Integer,n As Integer)As Integer
Do While m ◇ n
Do While m>n:m=m—n:Loop
DO While m<n:n=n-m:Loop
Loop
My Func=m
End Function
A.2
B.4
C.6
D.8
点击查看答案&解析
<上一题
目录
下一题>
热门
试题
单项选择题
有以下函数过程: Function Gys(ByVal x As Integer,ByVal y As Integer)As Integer Do While y< >0 Remender=x Mod v x=y Y=Reminder Loop Gys=x End Function 以下是调用该函数的事件过程,该程序的运行结果是 Private Sub Command1_Click( ) Dim a As Integer Dim b As Integer a=50 b=10 x=Cys(a,b) Print x End sub
A.0
B.10
C.50
D.100
点击查看答案&解析
单项选择题
单击窗口时,下列程序代码的执行结果为 Private Sub Form_Click( ) Text1 End Sub Private Sub Text(x As Integer) x=x*3+1 if x<6 Then call Text(x) End if x=x*2+1 Print x; End Sub
A.27 55
B.11 35
C.22 45
D.24 51
点击查看答案&解析
相关试题
设在工程中有一个标准模块,其中定义了如下...
在窗体中添加一个名称为Lablel1的标签、两...
程序是一个窗体双击事件代码,窗体的名称是...
建立随机文件TEST.DAT,存放学生的姓名和...
数据库是指按照一定的规则存储在计算机中的...