Please login

Prime

Prepinsta Prime

Video courses for company/skill based Preparation

(Check all courses)
Get Prime Video
Prime

Prepinsta Prime

Purchase mock tests for company/skill building

(Check all mocks)
Get Prime mock

HackerRank OOPS Quiz -1

Question 1

Time: 00:00:00
Which type of inheritance is shown in the figure?

Ques 1 quiz 1 Opps concept hackerrank

Single Level

Single Level

Multi Level

Multi Level

Multiple Level

Multiple Level

Hierarchical Level

Hierarchical Level

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

Please login to submit your explanation

Start

Question 2

Time: 00:00:00
Having more than 1 function with the same function name and the same number of parameters is known as

Compile Time Polymorphism

Compile Time Polymorphism

Runtime Polymorphism

Runtime Polymorphism

Function Overloading

Function Overloading

Function Repeating

Function Repeating

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

Please login to submit your explanation

Start

Question 3

Time: 00:00:00
Which of the following operators cannot be overloaded?

+

+

_

_

.

.

*

*

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

Please login to submit your explanation

Start

Question 4

Time: 00:00:00
What is the output of the following code?

10

10

20

20

Compile Time Error

Compile Time Error

Run Time Error

Run Time Error

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

Please login to submit your explanation

Start

Question 5

Time: 00:00:00
How to access the private members of a class?

Using private access specifier

Using private access specifier

Using public access specifier

Using public access specifier

Using friend class

Using friend class

Using protected access specifier

Using protected access specifier

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

Please login to submit your explanation

Start

Question 6

Time: 00:00:00
Reusing the same code in different classes is known as _____?

Abstraction

Abstraction

Data Hiding

Data Hiding

Inheritance

Inheritance

Polymorphism

Polymorphism

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

Please login to submit your explanation

Start

Question 7

Time: 00:00:00
What is the size of the class?

30

30

28

28

24

24

32

32

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

Please login to submit your explanation

Start

Question 8

Time: 00:00:00
Can we create the objects of the derived class?

True

True

False

False

Depends

Depends

Neither True Nor False

Neither True Nor False

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

Please login to submit your explanation

Start

Question 9

Time: 00:00:00
The abstract class should have

One virtual function

One virtual function

One pure virtual function

One pure virtual function

One member function

One member function

One member function

One member function

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

Please login to submit your explanation

Start

Question 10

Time: 00:00:00
What is the output of the following code?

Ques 20.

Ques 20 Quiz-1 hackerrank

B

B

A

A

Compile Time Error

Compile Time Error

Runtime Error

Runtime Error

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

Please login to submit your explanation

Start

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

Completed

0/0

Accuracy

0%

Prime

Prime Mock

Complete Mock Subscription for HackerRank

for HackerRank
Get Prime Mock

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%

Comments