Multiple choice

All exception thrown by the C++ standard library is derived from _____________ class.

  1. ios::exception

  2. stdlib::exception

  3. std::exception

  4. err::exception

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

All the exception thrown by the C++ standard library is derived from the std::exception class. The standard exceptions are bad_alloc, bad_cast, bad_exception, bad_typeid.