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

Accuracy

0%

Comments