Exception Handling


  1. Which operations don’t throw anything?











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: A

    Operations which are irreversible


  1. What are the predefined exceptions in c++?











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: D

    Both Memory allocation errors & I/O errors



  1. Which handler is used to handle all types of exception?











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: C

    To catch all types of exceptions, we use the catch-all handler.


  1. Which operator is used as catch-all handler?











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: D

    The ellipses operator can be represented as (…).



  1. What function will be called when we have an uncaught exception?











  1. 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.