Data Structure Multiple Choice Questions – Stack, Schemes and Mind Maps of Data Structures and Algorithms

Data Structure Multiple Choice Questions – Stack

Typology: Schemes and Mind Maps

2024/2025

Available from 03/17/2026

pavanpv1998
pavanpv1998 🇮🇳

2 documents

1 / 2

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
Data Structures MCQs – Stack
1. Process of inserting an element in stack is called ____________
a) Create
b) Push
c) Evaluation
d) Pop
Answer: b
Explanation: Push inserts elements into the stack.
2. Process of removing an element from stack is called __________
a) Create
b) Push
c) Evaluation
d) Pop
Answer: d
Explanation: Pop removes the top element.
3. Removing from empty stack is called _________
a) Underflow
b) Empty collection
c) Overflow
d) Garbage Collection
Answer: a
4. Pushing into full stack results in ___________
a) Overflow
b) Crash
c) Underflow
d) User flow
Answer: a
5. Stack entries are ordered means ___________
a) Sortable
b) Comparable
c) Linked list
d) Sequential entry
Answer: d
Explanation: Stack follows LIFO order.
6. Which is not an application of stack?
a) Parentheses balancing
b) Local variables tracking
c) Compiler syntax analyzer
d) Data transfer between processes
Answer: d
7. Max stack size for (()(())(()))?
a) 1
b) 2
c) 3
d) 4 or more
Answer: c
pf2

Partial preview of the text

Download Data Structure Multiple Choice Questions – Stack and more Schemes and Mind Maps Data Structures and Algorithms in PDF only on Docsity!

Data Structures MCQs – Stack

  1. Process of inserting an element in stack is called ____________ a) Create b) Push c) Evaluation d) Pop Answer: b Explanation: Push inserts elements into the stack.
  2. Process of removing an element from stack is called __________ a) Create b) Push c) Evaluation d) Pop Answer: d Explanation: Pop removes the top element.
  3. Removing from empty stack is called _________ a) Underflow b) Empty collection c) Overflow d) Garbage Collection Answer: a
  4. Pushing into full stack results in ___________ a) Overflow b) Crash c) Underflow d) User flow Answer: a
  5. Stack entries are ordered means ___________ a) Sortable b) Comparable c) Linked list d) Sequential entry Answer: d Explanation: Stack follows LIFO order.
  6. Which is not an application of stack? a) Parentheses balancing b) Local variables tracking c) Compiler syntax analyzer d) Data transfer between processes Answer: d
  7. Max stack size for (()(())(()))? a) 1 b) 2 c) 3 d) 4 or more Answer: c
  1. Max stack size with 2 left & 3 right parentheses? a) 1 b) 2 c) 3 d) 4 or more Answer: b
  2. Value of postfix 6 3 2 4 + – *? a) 1 b) 40 c) 74 d) - Answer: d
  3. Max symbols in stack during infix to postfix conversion? a) 1 b) 2 c) 3 d) 4 Answer: d