HackerRank Stack Quiz-1

Question 1

Time: 00:00:00
Which among the following is true about Stack?

I: These are abstract data structures

II: These follows the LIFO order

III. Insertion and deletion is performed at one end only

i and ii

i and ii

ii and iii

ii and iii

i and iii

i and iii

i,ii,iii

i,ii,iii

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

Please login to submit your explanation

Question 2

Time: 00:00:00
Insertion of an element in the stack is called __________.

Load

Load

Fill

Fill

Push

Push

Pop

Pop

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

Please login to submit your explanation

Question 3

Time: 00:00:00
Deletion of an element in the stack is called __________.

Delete

Delete

Remove

Remove

Push

Push

Pop

Pop

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

Please login to submit your explanation

Question 4

Time: 00:00:00
 When the stack returns the topmost item is called ________.

Top Item

Top Item

Last element

Last element

Peek

Peek

Pop

Pop

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

Please login to submit your explanation

Question 5

Time: 00:00:00
Applications where we can use stack?

A parentheses balancing program

A parentheses balancing program

Compiler Syntax Analyzer

Compiler Syntax Analyzer

Tracking of local variables at run time

Tracking of local variables at run time

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

Question 6

Time: 00:00:00
How can we insert different types of data in the stack?

Union

Union

Structure

Structure

A and B

A and B

None

None

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

Please login to submit your explanation

Question 7

Time: 00:00:00
Removing an element from an empty stack is called _________.

Overflow

Overflow

Underflow

Underflow

Empty element

Empty element

Pop

Pop

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

Please login to submit your explanation

Question 8

Time: 00:00:00
When we place books one over the other and then removed, then what type of data structure are we using

Queue

Queue

Hashing

Hashing

Stack

Stack

Pop

Pop

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

Please login to submit your explanation

Question 9

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

Last In First Out

Last In First Out

First Come First Serve

First Come First Serve

Underflow Condition

Underflow Condition

None

None

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

Please login to submit your explanation

Question 10

Time: 00:00:00
What is Infix Conversion in Stack?

When an operator is in-between every pair of operands like ‘a’ operator ‘b’.

When an operator is in-between every pair of operands like ‘a’ operator ‘b’.

When an operator is followed for every pair of operands like ‘a’ ‘b’ operator .

When an operator is followed for every pair of operands like ‘a’ ‘b’ operator .

Both a and b

Both a and b

None

None

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

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.