Multiple choice

Which of the following keywords is/are not used in exception handling of C++? a) try
b) throws c) throw d) catch e) finally

  1. Only e

  2. Both b and c

  3. Both b and e

  4. All keywords are used

  5. All a, c and d

Reveal answer Fill a bubble to check yourself
C Correct answer
Explanation

In C++, the exception handling mechanism is achieved using the keywords try, catch and throw.