Skip to content
Sign in
Computer PPSC

In C++, exception handling is targeted at

Tap an option to check the answer. You can also press A–D.

Explanation
C++ exception handling with try, catch and throw deals with errors that occur while the program is running, such as division by zero or invalid input. Compile-time and syntax errors are caught by the compiler before execution. Related facts: try encloses code that may throw an exception.catch handles the thrown exception. Compiler errors must be fixed before the program can run. Exam tip: Exception handling is for run-time errors only.