Solved

Consider the Following Code

Question 26

Multiple Choice

Consider the following code. The Catch block of code will not be executed if the user enters which of the following when prompted?
Private Sub btnCalc_Click(...) Handles btnCalc.Click
Dim newNum, finalNum As Integer
Dim message, message1 As String
Try
newNum = CInt(InputBox("How old are you?") )
Catch
message = "That answer is not an Integer value."
MessageBox.Show(message)
newNum = 0
Finally finalNum = newNum + 1
message1 = "Your age next year will be " & finalNum & "."
MessageBox.Show(message1)
End Try
End Sub


A) one
B) 0
C) 3000000000
D) *

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