Multiple Choice
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
Correct Answer:
Verified
Q2: Which of the following can be returned
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
Q8: Which of the following code examples is
Q9: Which of the following calls to the
Q10: Which statement is true in regard to
Q11: What is the value of intTotal after