C++ MQCs with Explanation ( EXCEPTION HANDLING

An exception thrown by a try block that is followed by a group of catch blocks

  1. is caught by the first catch statement in the group
  2. is caught by the catch( ) whose argument matches with the type of exception thrown
  3. is always caught by catch (…) statement placed at the end
  4. s caught by the catch statement in the next enclosing try / catch sequence



Answer: 
Option b: is caught by the catch( ) whose argument matches with the type of exception thrown

Explanation Here

Post a Comment

0 Comments