TCS Stack and Queue 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 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
When a lady wears bangles and removes it, then 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 4

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 5

Time: 00:00:00
 When the data is transferred  asynchronously between two processes, So that what 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

Question 6

Time: 00:00:00
Handling of interruption is real time system.so 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 basically solves the customer queries. So when the two customers call in a call center so one of them has to stay in hold. So what type of data structure 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
What type of method is used to place an element on 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 9

Time: 00:00:00
If the user is trying to pop an element from the empty stack, the condition is known 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 10

Time: 00:00:00
If a stack size is 5 and the user is trying to add the sixth element in the stack, so the condition is known as

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

its overflow because actuall size is 5 and we are trying to add one more element which is 6th so obviously it ia an overflow condition

Start

["0","40","60","80","100"]
["Need more practice!","Keep trying!","Not bad!","Good work!","Perfect!"]

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