C++20 sections · 1024 units
Open in Course

Quiz: try-catch Basics

Knowledge check

Check Your Understanding

What happens if an exception is thrown inside a try block but no catch block matches its type?

  1. A.The program searches outer try-catch blocks or terminates
  2. B.The exception is ignored and execution continues
  3. C.The compiler produces an error
  4. D.The exception is automatically converted to a std::exception
Start the roadmap to answer the quizzes and solve the challenges