📢 Too many exams? Don’t know which one suits you best? Book Your Free Expert 👉 call Now!


    Question

    Which of the following is a disadvantage of a static

    (array-based) queue compared to a dynamic (linked list-based) queue?
    A Slower access to elements Correct Answer Incorrect Answer
    B Inability to store primitive data types Correct Answer Incorrect Answer
    C Potential for memory wastage or overflow if size is misjudged Correct Answer Incorrect Answer
    D More complex implementation Correct Answer Incorrect Answer
    E Not suitable for FIFO operations Correct Answer Incorrect Answer

    Solution

    Explanation A static queue has a fixed capacity. If too large, it wastes memory; if too small, it can overflow. Dynamic queues (linked lists) adjust their size as needed.

    Practice Next
    ask-question