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 UnderflowThe 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…

  1. A.

    Both Overflow and Underflow

  2. B.

    Neither Overflow nor Underflow

  3. C.

    Underflow

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

Explore the full course: Btsc Lab Assistant

Loading lesson…