Question 1

Time: 00:00:00
Which of the following is not a type of constructor?

Default constructor

Default constructor

Copy Constructor

Copy Constructor

Friend Constructor

Friend Constructor

Parameterized Constructor

Parameterized Constructor

Once you attempt the question then PrepInsta explanation will be displayed.

Please login to submit your explanation

Question 2

Time: 00:00:00
How many type of polymorphism in C++ are?

 

1

1

2

2

3

3

4

4

Once you attempt the question then PrepInsta explanation will be displayed.

Please login to submit your explanation

Question 3

Time: 00:00:00
Which OOP feature denotes code reusability?

Abstraction

Abstraction

Polymorphism

Polymorphism

Inheritance

Inheritance

Encapsulation

Encapsulation

Once you attempt the question then PrepInsta explanation will be displayed.

Please login to submit your explanation

Question 4

Time: 00:00:00
How many types of access modifiers in oops(C++)?

 

1

1

2

2

3

3

4

4

Once you attempt the question then PrepInsta explanation will be displayed.

Please login to submit your explanation

Question 5

Time: 00:00:00
What in object-oriented programming is an abstraction?

 

Hiding the implementation and simply displaying the features

Hiding the implementation and simply displaying the features

Hiding the crucial information

Hiding the crucial information

Hiding Implementation

Hiding Implementation

Displaying the crucial information

Displaying the crucial information

Once you attempt the question then PrepInsta explanation will be displayed.

Please login to submit your explanation

Question 6

Time: 00:00:00
Which access specifier is by default used in data member of a class?

Public

Public

Private

Private

Protected

Protected

None of these

None of these

Once you attempt the question then PrepInsta explanation will be displayed.

Please login to submit your explanation

Question 7

Time: 00:00:00
Which of the following claims regarding constructors and destructors is true?

 

Constructors cannot accept arguments, although destroyers can.

Constructors cannot accept arguments, although destroyers can.

Destructors cannot accept arguments, although constructors may.

Destructors cannot accept arguments, although constructors may.

Constructors cannot be overloaded, but destructors can.

Constructors cannot be overloaded, but destructors can.

Both constructors and destroyers have the ability to return values.

Both constructors and destroyers have the ability to return values.

Once you attempt the question then PrepInsta explanation will be displayed.

Please login to submit your explanation

Question 8

Time: 00:00:00
What keyword is used to control access to a class member among the following?

 

protected

protected

default

default

break

break

private

private

Once you attempt the question then PrepInsta explanation will be displayed.

Please login to submit your explanation

Question 9

Time: 00:00:00
Constructor is executed on which of the following conditions ?

 

an object is created

an object is created

an object is used

an object is used

a class is declared

a class is declared

an object goes out of scope.

an object goes out of scope.

Once you attempt the question then PrepInsta explanation will be displayed.

Please login to submit your explanation

Question 10

Time: 00:00:00
Which of the subsequent claims regarding virtual base classes is true?

 

Multiple inheritance is made possible by it.

Multiple inheritance is made possible by it.

It is used to prevent the base class from being duplicated in derived classes.

It is used to prevent the base class from being duplicated in derived classes.

Multiple copies of the base class are permitted in derived classes.

Multiple copies of the base class are permitted in derived classes.

It enables the derived class to inherit private members from the base class.

It enables the derived class to inherit private members from the base class.

Once you attempt the question then PrepInsta explanation will be displayed.

Please login to submit your explanation

["0","40","60","80","100"]
["Need more practice!","Keep trying!","Not bad!","Good work!","Perfect!"]

Personalized Analytics only Availble for Logged in users

Analytics below shows your performance in various Mocks on PrepInsta

Your average Analytics for this Quiz

Rank

-

Percentile

0%

Get over 200+ Courses under One Subscription

mute

Don’t settle Learn from the Best with PrepInsta Prime Subscription

Learn from Top 1%

One Subscription, For Everything

The new cool way of learning and upskilling -

Limitless Learning

One Subscription access everything

Job Assistance

Get Access to PrepInsta Prime

Top Faculty

from FAANG/IITs/TOP MNC's

Get over 200+ course One Subscription

Courses like AI/ML, Cloud Computing, Ethical Hacking, C, C++, Java, Python, DSA (All Languages), Competitive Coding (All Languages), TCS, Infosys, Wipro, Amazon, DBMS, SQL and others.

Comments