Home / C++ Programming / OOPS Concepts :: General Questions

C++ Programming :: OOPS Concepts

  1. cout is a/an __________ .

  2. A.
    operator
    B.
    function
    C.
    object
    D.
    macro

    View Answer

    Workspace

    Discuss Discuss in Forum


  3. Which of the following concepts provides facility of using object of one class inside another class?

  4. A.
    Encapsulation
    B.
    Abstraction
    C.
    Composition
    D.
    Inheritance

    View Answer

    Workspace

    Discuss Discuss in Forum


  5. How many types of polymorphisms are supported by C++?

  6. A.
    1
    B.
    2
    C.
    3
    D.
    4

    View Answer

    Workspace

    Discuss Discuss in Forum


  7. Which of the following is an abstract data type?

  8. A.
    int
    B.
    double
    C.
    string
    D.
    Class

    View Answer

    Workspace

    Discuss Discuss in Forum


  9. Which of the following concepts means adding new components to a program as it runs?

  10. A.
    Data hiding
    B.
    Dynamic typing
    C.
    Dynamic binding
    D.
    Dynamic loading

    View Answer

    Workspace

    Discuss Discuss in Forum


  11. Which of the following statement is correct?

  12. A.
    A constructor is called at the time of declaration of an object.
    B.
    A constructor is called at the time of use of an object.
    C.
    A constructor is called at the time of declaration of a class.
    D.
    A constructor is called at the time of use of a class.

    View Answer

    Workspace

    Discuss Discuss in Forum


  13. Which of the following correctly describes overloading of functions?

  14. A.
    Virtual polymorphism
    B.
    Transient polymorphism
    C.
    Ad-hoc polymorphism
    D.
    Pseudo polymorphism

    View Answer

    Workspace

    Discuss Discuss in Forum


  15. Which of the following approach is adapted by C++?

  16. A.
    Top-down
    B.
    Bottom-up
    C.
    Right-left
    D.
    Left-right

    View Answer

    Workspace

    Discuss Discuss in Forum


  17. Which of the following is correct about function overloading?

  18. A.
    The types of arguments are different.
    B.
    The order of argument is different.
    C.
    The number of argument is same.
    D.
    Both A and B.

    View Answer

    Workspace

    Discuss Discuss in Forum


  19. Which of the following is correct about class and structure?

  20. A.
    class can have member functions while structure cannot.
    B.
    class data members are public by default while that of structure are private.
    C.
    Pointer to structure or classes cannot be declared.
    D.
    class data members are private by default while that of structure are public by default.

    View Answer

    Workspace

    Discuss Discuss in Forum