hamburger menu
All Coursesall course arrow
adda247
reward-icon
adda247
    arrow
    arrow
    arrow
    Which of the following conditions holds TRUE for a queue of fixed size?
    Question

    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

    Correct option is A

    In a queue of fixed size, two major conditions can occur during its operation:

    1. Underflow happens when we try to delete (dequeue) an element from an empty queue.
    2. Overflow occurs when we try to insert (enqueue) an element into a queue that is already full.

    Since the queue has a fixed size, there is a maximum limit to how many elements it can store. Therefore, both conditions are possible depending on the queue's current state.

    Important Key Points:

    1. Fixed-size queues have a defined maximum capacity and do not auto-expand like dynamic structures.
    2. Underflow is related to deletion from an empty queue.
    3. Overflow is related to insertion into a full queue.

    Knowledge Booster:

    • Neither Overflow nor Underflow: This is not possible for fixed-size queues — both errors can occur in practice.
    • Underflow: Only occurs when the queue is empty and a dequeue operation is attempted — not the only condition possible.
    • Overflow: Only occurs when the queue is full and an enqueue operation is attempted — again, not the only condition.

    Free Tests

    Free
    Must Attempt

    MPTET Varg 3 PRT Mock 01

    languageIcon English
    • pdpQsnIcon150 Questions
    • pdpsheetsIcon150 Marks
    • timerIcon150 Mins
    languageIcon English
    Free
    Must Attempt

    MPTET Varg 3 PRT CDP Subject Test 01

    languageIcon English
    • pdpQsnIcon20 Questions
    • pdpsheetsIcon20 Marks
    • timerIcon20 Mins
    languageIcon English
    Free
    Must Attempt

    UPTET Paper 2 Social Science : PYP Held on 23rd Jan 2022 (Shift 2)

    languageIcon English
    • pdpQsnIcon150 Questions
    • pdpsheetsIcon150 Marks
    • timerIcon150 Mins
    languageIcon English
    test-prime-package

    Access ‘UPSSSC’ Mock Tests with

    • 60000+ Mocks and Previous Year Papers
    • Unlimited Re-Attempts
    • Personalised Report Card
    • 500% Refund on Final Selection
    • Largest Community
    students-icon
    383k+ students have already unlocked exclusive benefits with Test Prime!
    Our Plans
    Monthsup-arrow