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

PrepInsta User

imperative

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

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

PrepInsta User

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).

PrepInsta User

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).

PrepInsta User

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).

PrepInsta User

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).

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

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

PrepInsta User

D

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

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

PrepInsta User

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

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

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

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

["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%

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