Which of the following principle does Queue use?
2022
Which of the following principle does Queue use?
Answer: B. FIFO principle — 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.…
- A.
LIFO principle
- B.
FIFO principle
- C.
Linear tree
- D.
Ordered array
Attempted by 2047 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.
Loading lesson…