Accenture Polymorphism Quiz-1

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%

Completed

0/9

Accuracy

0%

Get Prepinsta Prime

Get all 200+ courses offered by Prepinsta

Never Miss an OffCampus Update

Get OffCampus Updates on Social Media from PrepInsta

Follow us on our Media Handles, we post out OffCampus drives on our Instagram, Telegram, Discord, Whatsdapp etc.

Get Hiring Updates
Amazon,Google,Delottie & 30+companies are hiring ! Get hiring Updates right in your inbox from PrepInsta

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.

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.

Get PrepInsta Prime Subscription

Get access to all the courses that PrepInsta offers, check the out below -

Companies

TCS, Cognizant, Delloite, Infosys, Wipro, CoCubes, KPMG, Amazone, ZS Associates, Accenture, Congnizant & other 50+ companies

Programming

Data Structures, Top 500 Codes, C, C++, Java Python & other 10+ subjects

Skills

Full Stack Web Development, Data Science, Machine Learning, AWS Cloud, & other 10+ skills and 20+ projects