Solved

Which of the Following Examples Correctly Uses an Input Box

Question 16

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:

verifed

Verified

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions

Unlock this Answer For Free Now!

View this answer and more for free by performing one of the following actions

qr-code

Scan the QR code to install the App and get 2 free unlocks

upload documents

Unlock quizzes for free by uploading documents