Question 1

Time: 00:00:00
The operator << when overloaded in a class

must be a member function

must be a member function

must be a non member function

must be a non member function

can be both (A) & (B) above

can be both (A) & (B) above

cannot be overloaded

cannot be overloaded

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

Please login to submit your explanation

Start

Question 2

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

B

C

*

*

->

->

[]

[]

?:

?:

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 operator is overloaded for object cout?

+

+

>>

>>

<<

<<

=

=

()

()

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

Please login to submit your explanation

Start

Question 4

Time: 00:00:00
Which of the following correctly describes overloading of functions?

Virtual polymorphism

Virtual polymorphism

Ad-hoc polymorphism

Ad-hoc polymorphism

Transient polymorphism

Transient polymorphism

Pseudo polymorphism

Pseudo polymorphism

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

Please login to submit your explanation

Start

Question 5

Time: 00:00:00
Which of the followings are true about Virtual functions?

They must be non-static member function of the class

They must be non-static member function of the class

They cannot be friends

They cannot be friends

Constructor Functions cannot be virtual

Constructor Functions cannot be virtual

All of these

All of these

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

Please login to submit your explanation

Start

Question 6

Time: 00:00:00
Find the wrong statement/s about Abstract Class?

We can’t create its objects.

We can’t create its objects.

We can’t create pointers to an abstract class.

We can’t create pointers to an abstract class.

It contains at least one pure virtual function.

It contains at least one pure virtual function.

We can create references to an abstract class.

We can create references to an abstract class.

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

Please login to submit your explanation

Start

Question 7

Time: 00:00:00
C++ supports run time polymorphism with the help of virtual functions, which is called …………….. binding?

dynamic

dynamic

run time

run time

early binding

early binding

static

static

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

Please login to submit your explanation

Start

Question 8

Time: 00:00:00
Syntax for Pure Virtual Function is?

virtual void show()==0

virtual void show()==0

void virtual show()==0

void virtual show()==0

virtual void show()=0

virtual void show()=0

void virtual show()=0

void virtual show()=0

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

Please login to submit your explanation

Start

Question 9

Time: 00:00:00
A virtual function that has no definition within the base class is called?

Pure virtual function

Pure virtual function

Pure static function

Pure static function

Pure Const function

Pure Const function

Virtual Function

Virtual Function

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! \r\n \r\n","Keep trying! \r\n \r\n","Not bad! \r\n \r\n","Good work! \r\n \r\n","Perfect! \r\n \r\n"]

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 Assurance

Get Access to PrepInsta Placement Cell

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.