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?

  1. A.

    Both Overflow and Underflow

  2. B.

    Neither Overflow nor Underflow

  3. C.

    Underflow

  4. 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.

Explore the full course: Btsc Lab Assistant