TCS NQT Stacks and Queues Quiz – 1

Question 1

Time: 00:00:00
How can we insert different type of data in the stack.

Not possible

Not possible

By implementing union

By implementing union

Structure data type

Structure data type

Both b and c

Both b and c

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 type of data structure is used to create an internal space  for parameters and local variables.

Queue

Queue

Stack

Stack

tree

tree

array

array

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

Please login to submit your explanation

Start

Question 3

Time: 00:00:00
What type of method is used to place a method onto the top of the Stack.

pop()

pop()

push()

push()

Evaluation()

Evaluation()

Create()

Create()

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

Please login to submit your explanation

Start

Question 4

Time: 00:00:00
If user is trying to pop element from the empty stack, the condition is called as

Overflow condition

Overflow condition

Underflow condition

Underflow condition

Garbage collection

Garbage collection

Empty collection

Empty collection

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

Please login to submit your explanation

Start

Question 5

Time: 00:00:00
If a stack size is 5 and the user is trying push more elements then the condition is

Underflow

Underflow

Crash

Crash

Overflow

Overflow

Userflow

Userflow

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

Please login to submit your explanation

Start

Question 6

Time: 00:00:00
Handling of interruption is real time system so that these interruptions are handled in some order. The order is

Last in first out

Last in first out

First come first serve

First come first serve

Both can be use

Both can be use

Both are not use

Both are not use

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

Please login to submit your explanation

Start

Question 7

Time: 00:00:00
Call center bassically solve the customer queries. So when the two customer call in call center so that one of them have to stay in hold. So what type of data structure  is used here

Tree

Tree

Stack

Stack

Queue

Queue

Calls are picked randomly.

Calls are picked randomly.

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

Please login to submit your explanation

Start

Question 8

Time: 00:00:00
When a lady wears and removes her bangles what type of data structure she is using.

queue

queue

hashing

hashing

stack

stack

none of them

none of them

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

Please login to submit your explanation

Start

Question 9

Time: 00:00:00
When multiple processes require CPU at the same time, various CPU scheduling  algorithms are used which are implemented using data structure, That is:

tree

tree

link list

link list

Advance data structure

Advance data structure

Queue

Queue

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

Please login to submit your explanation

Start

Question 10

Time: 00:00:00
When the data is transferred  asynchronously between two processes. Then data structure is used for synchronization.

Hashing

Hashing

Stack

Stack

Queue

Queue

Tree

Tree

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


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