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

C++ Programming :: OOPS Concepts

  1. Which of the following type of class allows only one object of it to be created?

  2. A.
    Virtual class
    B.
    Abstract class
    C.
    Singleton class
    D.
    Friend class

    View Answer

    Workspace

    Discuss Discuss in Forum


  3. Which of the following is not a type of constructor?

  4. A.
    Copy constructor
    B.
    Friend constructor
    C.
    Default constructor
    D.
    Parameterized constructor

    View Answer

    Workspace

    Discuss Discuss in Forum


  5. Which of the following statements is correct?

  6. A.
    Base class pointer cannot point to derived class.
    B.
    Derived class pointer cannot point to base class.
    C.
    Pointer to derived class cannot be created.
    D.
    Pointer to base class cannot be created.

    View Answer

    Workspace

    Discuss Discuss in Forum


  7. Which of the following is not the member of class?

  8. A.
    Static function
    B.
    Friend function
    C.
    Const function
    D.
    Virtual function

    View Answer

    Workspace

    Discuss Discuss in Forum


  9. Which of the following concepts means determining at runtime what method to invoke?

  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 term is used for a function defined inside a class?

  12. A.
    Member Variable
    B.
    Member function
    C.
    Class function
    D.
    Classic function

    View Answer

    Workspace

    Discuss Discuss in Forum


  13. Which of the following concept of oops allows compiler to insert arguments in a function call if it is not specified?

  14. A.
    Call by value
    B.
    Call by reference
    C.
    Default arguments
    D.
    Call by pointer

    View Answer

    Workspace

    Discuss Discuss in Forum


  15. Which of the following cannot be friend?

  16. A.
    Function
    B.
    Class
    C.
    Object
    D.
    Operator function

    View Answer

    Workspace

    Discuss Discuss in Forum


  17. Which of the following concepts of OOPS means exposing only necessary information to client?

  18. A.
    Encapsulation
    B.
    Abstraction
    C.
    Data hiding
    D.
    Data binding

    View Answer

    Workspace

    Discuss Discuss in Forum


  19. Why reference is not same as a pointer?

  20. A.
    A reference can never be null.
    B.
    A reference once established cannot be changed.
    C.
    Reference doesn't need an explicit dereferencing mechanism.
    D.
    All of the above.

    View Answer

    Workspace

    Discuss Discuss in Forum