Top 50+ Solved Object Oriented Programming Using C++ MCQ Questions Answer

From 16 to 30 of 30

Q. Which operator is used with cout?

a. >>

b. <<

c. >

d. <

  • b. <<

Q. Which feature of OOP indicates code reusability?

a. Encapsulation

b. Inheritance

c. Abstraction

d. Polymorphism

  • b. Inheritance

Q. Which feature can be implemented using

a. Inheritance

b. Abstraction

c. Polymorphism

d. Overloading

  • b. Abstraction

Q. Which of the following is not a type of Constructor?

a. Friend constructor

b. Copy constructor

c. Default

d. Parameterized

  • a. Friend constructor

Q. What is the other name used for functions inside a

a. Member variables

b. Member functions

c. Class functions

d. Class variables

  • b. Member functions

Q. Which among the following can restrict class members to get inherited?

a. Private

b. Protected

c. Public

d. All three

  • a. Private

Q. Which type of members can’t be accessed in derived classes of a base class?

a. Protected

b. Private

c. Public

d. All can be accessed

  • b. Private

Q. Which of the following is true?

a. All objects of a class share all data members of class

b. Objects of a class do not share non-static members. Every object has its own copy

c. Objects of a class do not share codes of non-static

d. None of these

  • b. Objects of a class do not share non-static members. Every object has its own copy

Q. Which among the following is not true for polymorphism?

a. It is feature of OOP

b. Ease in readability of program

c. Helps in redefining the

d. Increases overhead of function

  • d. Increases overhead of function

Q. Out of the following, which is not a member of the

a. Static function

b. Friend function

c. Const function

d. Virtual function

  • b. Friend function

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

a. int

b. float

c. class

d. string

  • c. class

Q. Which of the following is not a type of inheritance?

a. Multiple

b. Multilevel

c. Distributive

d. Hierarchical

  • c. Distributive

Q. Which of the following is correct in C++?

a. Classes cannot have protected data members

b. Structures can have member functions

c. Class members are public by default

d. Structure members are private by default

  • b. Structures can have member functions
Subscribe Now

Get All Updates & News