单选题 单击命令按钮执行下列程序,其输出结果是______。
Private Sub Command1_Click()
Dim a As Integer,b As Integer,c As Integer
a=3:b=4:c=5
Print SecProc(c,b,a)
End Sub
Function FirProc(x As Integer,y As Integer,z As Integer)
FirProc=2*x+y+3*z
End Function
Function SecProc(x As Integer,y As Integer,z As Integer)
SecProc=FirProc(z,x,y)+x
End Function
  • A.20
  • B.22
  • C.28
  • D.30
【正确答案】 C
【答案解析】[考点] 过程调用和参数传递 [解析] 当在Command1_Click事件过程中调用SecProc函数过程时,参数x=5,y=4,z=3,在此过程中调用FirProc函数过程时,FirProc函数过程参数x=3,y=5,z=4,FirProc函数返回值为:2*3+5+3*4=23。SecProc函数返回值为:23+5=28。