单项选择题

单击命令按钮执行以下程序,则输出结果为( )。
Private Sub Command1_Click()
Dim x As Integer,y As Integer
X=14:y=48
Call Proc(x,y)
Print x;y
End Sub
Public Sub Proc(n As Integer,ByVal m As Integer)
n=n Mod 10:m=m Mod 10
End Sub

A.4 8
B.14 8
C.14 48
D.4 48
<上一题 目录 下一题>
热门 试题

单项选择题
下面程序运行后,语句“Print i”执行的次数是( )。 Private Sub Form_Click() Dim i As Integer,j As Integer i=0 Do i=i+1 For j=10 To 1 Step-3 i=i+j Print i Next j Loop While i<50 End Sub
A.4
B.8
C.12
D.16
单项选择题
标准模块中有如下程序代码: Public x As Integer,Y As Integer Sub TempSub() x=10:y=20 End Sub 在窗体上有1个命令按钮,并有如下事件过程: Private Sub Command1 Click() Dim x As Integer Call TempSub x=x+100:y=y+100 Print x;y End Sub 运行程序后单击命令按钮,窗体上显示的是( )。
A.110 100
B.100 100
C.100 120
D.110 120
相关试题
  • 由Array函数建立的数组的名字必须是___...
  • 如图所示,在列表框List1中已经有若干人的...
  • 在窗体上画一个名为Command1的命令按钮,...
  • 在窗体上建立一个含有3个命令按钮的控件数...
  • 当用______方式打开文件时,如果对文...