Data Structure Stacks Question #5749
MCQ Single Best Answer Easy

QWhich of the following is an advantage of using a stack?

ID: #5749 Stacks 166 views
Question Info
#5749Q ID
EasyDifficulty
StacksTopic

Choose the Best Option

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

  • A It allows for efficient insertion and deletion at any position
  • B It allows for efficient searching and sorting of elements
  • C It follows the First-In-First-Out (FIFO) principle
  • D It allows for efficient insertion and deletion at the top end
Correct Answer: Option D

Explanation

Answer: d) It allows for efficient insertion and deletion at the top end

Explanation: The primary advantage of using a stack is that it allows for efficient insertion and deletion at the top end, making it useful for applications that require temporary storage of data.

Share This Question

Challenge a friend or share with your study group.