单选题
单击命令按钮执行以下程序,则输出结果为______。 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
【正确答案】
D
【答案解析】[考点] 参数传递
[解析] 本题Proc过程中参数n按址传送,参数m按值传送。单击命令按钮,调用Proc过程时,形参n=14,m=48,执行语句“n=n Mod 10”后,n=4;执行语句“m=m Mod 10”后,m=8。此时,实参x=4,y=48。