Which of the following conditions holds TRUE for a queue of fixed size?
2017
Which of the following conditions holds TRUE for a queue of fixed size?
Answer: A. Both Overflow and Underflow — 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…
- A.
Both Overflow and Underflow
- B.
Neither Overflow nor Underflow
- C.
Underflow
- D.
Overflow
Attempted by 393 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.
Loading lesson…