TCS NQT OOPS Quiz- 1

Question 1

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

There might be two or more functions with equally appropriate signatures

There might be two or more functions with equally appropriate signatures

None of these

None of these

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

Please login to submit your explanation

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

Completely balanced tree

Completely balanced tree

Heap

Heap

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

Ad-hoc polymorphism

Ad-hoc polymorphism

Pseudo polymorphism

Pseudo polymorphism

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

Please login to submit your explanation

Start

Question 6

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

Option B

option b

option b

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

option c

option c

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

Templates

Templates

All of the above

All of the above

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

Operator

Operator

Friend

Friend

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  ?

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

["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 NQT Paid Materials

Paid Materials TCS NQT

Join TCS NQT 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