Multiple choice

The exception is activated through which keyword?

  1. Try

  2. Catch

  3. Struct

  4. Throw

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

In C++, the throw keyword is used to signal that an exception has occurred. Try and catch are used to handle the exception, while struct is a data structure definition.