Exception Handling
- Which operations don’t throw anything?
-
View Hint View Answer Discuss in Forum
NA
Correct Option: A
Operations which are irreversible
- What are the predefined exceptions in c++?
-
View Hint View Answer Discuss in Forum
NA
Correct Option: D
Both Memory allocation errors & I/O errors
- Which handler is used to handle all types of exception?
-
View Hint View Answer Discuss in Forum
NA
Correct Option: C
To catch all types of exceptions, we use the catch-all handler.
- Which operator is used as catch-all handler?
-
View Hint View Answer Discuss in Forum
NA
Correct Option: D
The ellipses operator can be represented as (…).
- What function will be called when we have an uncaught exception?
-
View Hint View Answer Discuss in Forum
NA
Correct Option: B
If we have an uncaught exception means, the compiler will throw the control of the program to terminate function.