logo

CuriousTab

CuriousTab

Discussion


Home Interview Technology Comments

  • Question
  • To which type of class, We can apply RTTI?


  • Options
  • A. Encapsulation
  • B. Polymorphic
  • C. Derived
  • D. None of these

  • Correct Answer
  • Polymorphic 

    Explanation

    RTTI is available only for classes which are polymorphic, which means they have at least one virtual method.


  • Technology problems


    Search Results


    • 1. Which operator is used in catch-all handler?

    • Options
    • A. ellipses operator
    • B. ternary operator
    • C. string operator
    • D. unary operator
    • Discuss
    • 2. 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
    • Discuss
    • 3. How many ways of reusing are there in class hierarchy?

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

    • Options
    • A. 1
    • B. 2
    • C. 3
    • D. 4
    • Discuss
    • 6. What do vectors represent?

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

    • Options
    • A. Classes
    • B. Iterators
    • C. Container
    • D. None of these
    • Discuss
    • 8. Explain one-definition rule (ODR).
    • Discuss
    • 9. What are the advantages of using friend classes?
    • Discuss
    • 10. .What are Stacks? Give an example where they are useful.
    • Discuss


    Comments

    There are no comments.

Enter a new Comment