logo

CuriousTab

CuriousTab

Discussion


Home Interview Technology Comments

  • Question
  • What is meant by exception specification?


  • Options
  • A. A function is limited to throwing only a specified list of exceptions.
  • B. A catch can catch all types of exceptions.
  • C. A function can throw any type of exceptions.
  • D. none of the mentioned

  • Correct Answer
  • A function is limited to throwing only a specified list of exceptions. 

    Explanation

    C++ provides a mechanism to ensure that a given function is limited to throwing only a specified list of exceptions. It is called as exception specification.


  • Technology problems


    Search Results


    • 1. How many ways of reusing are there in class hierarchy?

    • Options
    • A. 1
    • B. 2
    • C. 3
    • D. 4
    • Discuss
    • 2. What is an explicit constructor?
    • Discuss
    • 3. How many ways are there to initialize int with a constant?

    • Options
    • A. 1
    • B. 2
    • C. 3
    • D. 4
    • Discuss
    • 4. What do you mean by reference variable in c++?
    • Discuss
    • 5. Define Structure in C++.?
    • Discuss
    • 6. Which operator is used in catch-all handler?

    • Options
    • A. ellipses operator
    • B. ternary operator
    • C. string operator
    • D. unary operator
    • Discuss
    • 7. To which type of class, We can apply RTTI?

    • Options
    • A. Encapsulation
    • B. Polymorphic
    • C. Derived
    • D. None of these
    • Discuss
    • 8. What do vectors represent?

    • Options
    • A. Static arrays
    • B. Dynamic arrays
    • C. Stack
    • D. Queue
    • Discuss
    • 9. What is mandatory for designing a new container?

    • Options
    • A. Classes
    • B. Iterators
    • C. Container
    • D. None of these
    • Discuss
    • 10. Explain one-definition rule (ODR).
    • Discuss


    Comments

    There are no comments.

Enter a new Comment