Which of the following principle does Queue use?
2022
Which of the following principle does Queue use?
- A.
LIFO principle
- B.
FIFO principle
- C.
Linear tree
- D.
Ordered array
Attempted by 1013 students.
Show answer & explanation
Correct answer: B
Explanation: A queue operates based on the First-In-First-Out (FIFO) principle, meaning the first element added to the queue is the first one to be removed. This ensures that elements are processed in the order they arrive.