Which of the following conditions holds TRUE for a queue of fixed size?
2018
Which of the following conditions holds TRUE for a queue of fixed size?
- A.
Both Overflow and Underflow
- B.
Neither Overflow nor Underflow
- C.
Underflow
- D.
Overflow
Attempted by 156 students.
Show answer & explanation
Correct answer: A
The correct option is A: Both Overflow and Underflow. A fixed-size queue can experience Overflow when attempting to insert an element into an already full queue, and Underflow when attempting to delete an element from a completely empty queue. Both memory boundary checks are required.