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
Q9: In the context of Visual Basic procedures
Q10: What is assigned to lblDisplay.Text when the
Q11: Which of the following does not apply
Q12: A procedure may not be accessed by
Q13: When a procedure finishes execution, _.
A) control
Q15: When a parameter is declared using the
Q16: Which of the following examples correctly uses
Q17: Which of the following functions accepts a
Q18: Which of the following calls to the
Q19: When debugging a program in break mode,
Unlock this Answer For Free Now!
View this answer and more for free by performing one of the following actions
Scan the QR code to install the App and get 2 free unlocks
Unlock quizzes for free by uploading documents