Data Structure Stacks Question #5751
MCQ Single Best Answer Easy

QWhich of the following is a disadvantage of using a stack?

ID: #5751 Stacks 156 views
Question Info
#5751Q ID
EasyDifficulty
StacksTopic

Choose the Best Option

Click any option to instantly check if you're correct.

  • A It can only store a limited number of elements
  • B It is not efficient for searching or sorting elements
  • C It requires a lot of memory to implement
  • D It can lead to stack overflow errors if the stack becomes too large
Correct Answer: Option D

Explanation

Answer: d) It can lead to stack overflow errors if the stack becomes too large

Explanation: One potential disadvantage of using a stack is that it can lead to stack overflow errors if the stack becomes too large and exceeds the available memory.

Share This Question

Challenge a friend or share with your study group.