Multiple Choice
Which of the following code examples is a function that will accept three integer parameters, calculate their average, and return the result?
A) Function Average(ByVal intX As Integer, ByVal intY As Integer, _
ByVal intZ As Integer) As Single
Average = (intX + intY + intZ) / 3
End Function
B) Function Average(ByVal intX As Integer, ByVal intY as Integer, _
ByVal intZ As Integer) As Single
Average = intX + intY + intZ / 3
Return Average
End Function
C) Function Average(ByRef intX As Integer, ByRef intY as Integer, _
ByRef intZ As Integer, ByRef Average As Double)
Average = (intX + intY + intZ) / 3
End Function
D) Function Average(ByVal intX As Integer, ByVal IntY as Integer, _
ByVal intZ As Integer) As Single
Return (intX + intY + intZ) / 3
End Function
Correct Answer:

Verified
Correct Answer:
Verified
Q3: When a parameter is declared using the
Q4: In the context of Visual Basic procedures
Q5: A procedure may not be accessed by
Q6: What is the syntax error in the
Q7: All of the following are true about
Q9: Which of the following calls to the
Q10: Which statement is true in regard to
Q11: What is the value of intTotal after
Q12: If you do not provide an access
Q13: Which of the following functions accepts a