Multiple Choice
What is incorrect about the following function?
Function sum(ByVal intX As Integer, ByVal intY As Integer) As Integer
Dim intAns As Integer
IntAns = intX + intY
End Function
A) intAns should not be declared inside the Function.
B) the as Integer at the end of the Function heading should be eliminated.
C) the function does not return a value
D) parameters intA and intB should be declared as ByRef
Correct Answer:

Verified
Correct Answer:
Verified
Q21: Which is the correct way to define
Q22: What is wrong with the following GetName
Q23: When a procedure finishes execution, _.<br>A) control
Q24: Which of the following does not apply
Q25: When debugging a program in break mode,
Q26: Although you can omit the ByVal keyword
Q27: Which statement is not true regarding functions?<br>A)
Q29: If we were to call the MakeDouble
Q30: What will be the value of dblSum
Q31: Which one of the following declarations uses