Consider the following statements related to stacks and queues and choose the option that correctly identifies their validity.

  1. In a stack, the operation to remove an item is called "enqueue," while in a queue, it is called "dequeue."
  2. A queue follows the FIFO (First In, First Out) principle, allowing elements to be added at one end and removed from the other.
  3. The "push" operation is utilized in both stacks and queues for adding elements.

1
​Only 1 and 2 are correct.
2
Only 2 and 3 are correct.
3
Only 2 is correct.
4
None of the statements are correct.
5
Question Not Attempted

Sponsored

hivanix.in

Visit

This quiz is brought to you by hivanix.in

🌐 Web App Development

Quick Navigation