Solved

Consider the Following Code

Question 27

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