Object Oriented Programming

10 Questions  I  By Ashishdoorwar96
Please take the quiz to rate it.

Object Oriented Programming Quizzes & Trivia

  
Changes are done, please start the quiz.


Questions and Answers

Removing question excerpt is a premium feature

Upgrade and get a lot more done!
  • 1. 
    Which of the following is not a type of constructor?
    • A. 

      Copy constructor

    • B. 

      Friend constructor

    • C. 

      Default constructor

    • D. 

      Parameterized constructor


  • 2. 
    Which of the following cannot be friend?
    • A. 

      Function

    • B. 

      Class

    • C. 

      Object

    • D. 

      Operator Function


  • 3. 
    Which of the following concepts of OOPS means exposing only necessary information to client?
    • A. 

      Encapsulation

    • B. 

      Abstraction

    • C. 

      Data Hiding

    • D. 

      Data Binding


  • 4. 
    Which of the following approach is adapted by C++?
    • A. 

      Top-down

    • B. 

      Right-left

    • C. 

      Bottom-up

    • D. 

      Left-right


  • 5. 
    Which of the following is correct about class and structure?
    • A. 

      Class data members are public by default while that of structure are private.

    • B. 

      Class can have member functions while structure cannot.

    • C. 

      Class data members are private by default while that of structure are public by default.

    • D. 

      Pointer to structure or classes cannot be declared.


  • 6. 
    Which of the following operator is overloaded for object cout?
    • A. 

      >>

    • B. 

      <<

    • C. 

      +

    • D. 

      =


  • 7. 
    Which of the following is the correct class of the object cout?
    • A. 

      Iostream

    • B. 

      Istream

    • C. 

      Ostream

    • D. 

      Ifstream


  • 8. 
    Which inheritance type is used in the class given below? class A : public X, public Y {}
    • A. 

      Multilevel inheritance

    • B. 

      Multiple inheritance

    • C. 

      Hybrid inheritance

    • D. 

      Hierarchical Inheritance


  • 9. 
    Which of the following access specifier is used as a default in a class definition?
    • A. 

      Private

    • B. 

      Public

    • C. 

      Protected

    • D. 

      Friend


  • 10. 
    What is the result of the following statement? x=10; y=++x;
    • A. 

      X=10; y=10;

    • B. 

      X=10; y=11;

    • C. 

      X=11; y=10;

    • D. 

      X=11; y=11;


Back to top

Removing ad is a premium feature

Upgrade and get a lot more done!
Take Another Quiz
We have sent an email with your new password.