C++ MQCs with Explanation ( EXCEPTION HANDLING

State which of the following is TRUE

  1. Statements that cause an exception must be in a catch block
  2. A statement that causes an exception should be in a try block
  3. Once an exception is thrown, the control cannot return to the throw point
  4. A program cannot continue to operate after an exception has ocurred



Answer: 
Option b: A statement that causes an exception should be in a try block

Explanation Here

Post a Comment

0 Comments