Explore topic-wise MCQs in Object Oriented Programming.

This section includes 20 Mcqs, each offering curated multiple-choice questions to sharpen your Object Oriented Programming knowledge and support exam preparation. Choose a topic below to get started.

1.

If a base class is added with a few new members, its subclass must also be modified.

A. True
B. False
Answer» C.
2.

How many base classes can a single derived class have in C++?

A. 1
B. 2
C. 3
D. As many as required
Answer» E.
3.

If a base class is inherited from another class and then one class derives it, which inheritance is shown?

A. Multiple
B. Single
C. Hierarchical
D. Multi-level
Answer» E.
4.

Can we call methods of base class using the constructor of the derived class?

A. Yes, always
B. Yes, but not always
C. No, never
D. No, but we can call in some cases
Answer» B. Yes, but not always
5.

Always the base class constructors are called ___________ constructor of derived class.

A. Before
B. After
C. Along
D. According to priority of
Answer» B. After
6.

Base class have ________________ of abstraction.

A. Higher degree
B. Lower degree
C. Intermediate
D. Minimum degree
Answer» C. Intermediate
7.

If a class is enclosing more than one class, than it can be called as base class of those classes.

A. True
B. False
Answer» C.
8.

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
Answer» C. Public
9.

Which among the following must be in a base class?

A. Data members
B. Member functions
C. Access specifiers
D. Nothing
Answer» E.
10.

If a base class is being derived by two other classes, which inheritance will that be called?

A. Single
B. Multiple
C. Multi-level
D. Hierarchical
Answer» E.
11.

How to make a derived class a base class?

A. Change name of the class
B. Use keyword base
C. Make a class derive from it
D. Can’t be done
Answer» D. Can’t be done
12.

How many base classes can a single class inherit in java?

A. 1
B. 2
C. 3
D. As many as required
Answer» B. 2
13.

An abstract class is always a __________ class.

A. Base
B. Derived
C. Template
D. Nested
Answer» B. Derived
14.

A base class is also known as _____________ class.

A. Basic
B. Inherited
C. Super
D. Sub
Answer» D. Sub
15.

Which is most appropriate definition of a base class?

A. It is parent of any of its derived class
B. It is child of one of the parent class
C. It is most basic class of whole program
D. It is class with maximum number of members
Answer» B. It is child of one of the parent class
16.

BASE_CLASS_HAVE__________________OF_ABSTRACTION.?$

A. Higher degree
B. Lower degree
C. Intermediate
D. Minimum degree
Answer» C. Intermediate
17.

Can we call methods of base class using constructor of the derived class?$

A. Yes, always
B. Yes, but not always
C. No, never
D. No, but we can call in some cases
Answer» B. Yes, but not always
18.

Always the base class constructors are called ___________ constructor of derived class.$

A. Before
B. After
C. Along
D. According to priority of
Answer» B. After
19.

If a class is enclosing more than one class, than it can be called as base class of those classes?

A. True
B. False
Answer» C.
20.

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
Answer» C. Public