TCS OOPS Quiz-1

Question 1

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

adhoc polymorphism

adhoc polymorphism

imperative polymorphism

imperative polymorphism

predicative polymorphism

predicative polymorphism

inclusion polymorphism

inclusion polymorphism

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

Please login to submit your explanation

imperative

Start

Question 2

Time: 00:00:00
What is the function used to describe the situation, when a function in base class is redefined in inherited class?

Inheritance

Inheritance

Overriding

Overriding

Overloading

Overloading

Encapsulation

Encapsulation

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

Please login to submit your explanation

Start

Question 3

Time: 00:00:00
How can a call to an overloaded function be ambiguous?

By misspelling the name

By misspelling the name

There might be two or more functions with the same name

There might be two or more functions with the same name

None of these

None of these

There might be two or more functions with equally appropriate argument

There might be two or more functions with equally appropriate argument

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

Please login to submit your explanation

Overloading a method simply means two or more methods have the same method name with different arguments or parameters(compulsory) and return type(not necessary).

Overloading a method simply means two or more methods have the same method name with different arguments or parameters(compulsory) and return type(not necessary).

Overloading a method simply means two or more methods have the same method name with different arguments or parameters(compulsory) and return type(not necessary).

Overloading a method simply means two or more methods have the same method name with different arguments or parameters(compulsory) and return type(not necessary).

Start

Question 4

Time: 00:00:00
A complete binary tree with the property that the value at each node is at least as large as the values at its children is known as

Binary search tree

Binary search tree

AVL tree

AVL tree

Heap

Heap

Completely balanced tree

Completely balanced tree

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 following correctly describes overloading of functions?

Virtual polymorphism

Virtual polymorphism

Transient polymorphism

Transient polymorphism

Pseudo polymorphism

Pseudo polymorphism

Ad-hoc polymorphism

Ad-hoc polymorphism

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

Please login to submit your explanation

D

Start

Question 6

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 7

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

?; will be ......because all operator can be overloaded .

Start

Question 8

Time: 00:00:00
Which of the following is a mechanism of static polymorphism?

Operator overloading

Operator overloading

Function overloading

Function overloading

All of the above

All of the above

Templates

Templates

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

Please login to submit your explanation

Start

Question 9

Time: 00:00:00
Which of the following keyword is used to overload an operator?

Overload

Overload

Friend

Friend

Operator

Operator

Override

Override

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

Please login to submit your explanation

Start

Question 10

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

>>

>>

<<

<<

+

+

=

=

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

Buy TCS Prog. Logic (C MCQ) Paid Materials

Join TCS Online Classes

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/10

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

Comments