49. Choose the output from the code in Figure 30.* Try intNumber = cInt ("4e") MsgBox (intNumber) Catch ex As Exception MsgBox (ex.Message) End Try Figure 30 O A O O B. 4 O c. Catch cannot appear outside a Try statement O D. Conversion from string 4e' to type 'Integer is not valid 50. Choose the best answer to complete the exception handling in Figure 3 Sub Main () Dim Nol As Integer = 0 Dim No2 As Double Try Y = 100 / x ex As ArithmeticException MessageBox. Show (ex. Message) (I) MsgBox (Y) (II) End Sub Fimura 21

C++ for Engineers and Scientists
4th Edition
ISBN:9781133187844
Author:Bronson, Gary J.
Publisher:Bronson, Gary J.
Chapter9: Completing The Basics
Section9.1: Exception Handling
Problem 1E
icon
Related questions
Question

pls answer 49 n 50

49. Choose the output from the code in Figure 30. *
Try
intNumber = cInt ("4e")
MsgBox (intNumber)
Catch ex As Exception
MsgBox (ex.Message)
End Try
Figure 30
O A. 0
В. 4
O c. Catch cannot appear outside a Try statement
O D. Conversion from string '4e' to type 'Integer' is not valid
50. Choose the best answer to complete the exception handling in Figure 31.
Sub Main ()
Dim Nol As Integer = O
Dim No2 As Double
Try
Y = 100 / X
(I)
ex As ArithmeticException
MessageBox.Show (ex.Message)
MsgBox (Y)
(II)
End Sub
Figure 31
O A. I. Catch , II. End
O B. I. Catch, II. Lastly
O C.I. Catch, II. Finally
O D. I. Catch, II. End Try
Transcribed Image Text:49. Choose the output from the code in Figure 30. * Try intNumber = cInt ("4e") MsgBox (intNumber) Catch ex As Exception MsgBox (ex.Message) End Try Figure 30 O A. 0 В. 4 O c. Catch cannot appear outside a Try statement O D. Conversion from string '4e' to type 'Integer' is not valid 50. Choose the best answer to complete the exception handling in Figure 31. Sub Main () Dim Nol As Integer = O Dim No2 As Double Try Y = 100 / X (I) ex As ArithmeticException MessageBox.Show (ex.Message) MsgBox (Y) (II) End Sub Figure 31 O A. I. Catch , II. End O B. I. Catch, II. Lastly O C.I. Catch, II. Finally O D. I. Catch, II. End Try
Expert Solution
steps

Step by step

Solved in 2 steps with 1 images

Blurred answer
Knowledge Booster
Binary numbers
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
C++ for Engineers and Scientists
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr