Examveda
Examveda

If an exception is thrown and no catch block matches the type of the thrown parameter, then _____

A. the program terminates

B. the first catch block is executed

C. the last catch block is executed

D. the program proceeds with the code following the catch blocks

Answer: Option A


Join The Discussion

Related Questions on Object Oriented Programming Using C Plus Plus

A default catch block catches

A. all thrown objects

B. no thrown objects

C. any thrown object that has not been caught by an earlier catch block

D. all thrown objects that have been caught by an earlier catch block