Which of the following examples correctly uses an input box to assign a value to an integer, and returns the integer to the calling program using a reference parameter?
A) Sub GetInput(ByVal intNumber As Integer) intNumber = CInt(InputBox("Enter an Integer") )
End Sub
B) Sub GetInput(ByRef intNumber As Integer) intNumber = CInt(InputBox("Enter an Integer") )
End Sub
C) Sub GetInput(ByRef intNumber As Integer) intNumber = CInt(InputBox("Enter an Integer") )
Return intNumber
End Sub
D) Sub GetInput() Dim intNumber As Integer
IntNumber = CInt(InputBox("Enter an Integer") )
End Sub
Correct Answer:
Verified
Q11: Which of the following does not apply
Q12: A procedure may not be accessed by
Q13: When a procedure finishes execution, _.
A) control
Q14: What is incorrect about the following function?
Q15: When a parameter is declared using the
Q17: Which of the following functions accepts a
Q18: Which of the following calls to the
Q19: When debugging a program in break mode,
Q20: Which of the following code examples is
Q21: Which of the following procedure declarations matches
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