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


    Question

    Which of the following real-world applications commonly

    uses a queue data structure to manage its operations?
    A Reversing a string. Correct Answer Incorrect Answer
    B Checking for balanced parentheses in an expression. Correct Answer Incorrect Answer
    C Managing incoming requests to a web server for load balancing. Correct Answer Incorrect Answer
    D Implementing recursion. Correct Answer Incorrect Answer
    E Storing function call frames. Correct Answer Incorrect Answer

    Solution

    Queues follow the First-In, First-Out (FIFO) principle. Load balancers often use queues to distribute incoming requests to available servers in the order they arrive, ensuring fairness and preventing overload.

    Practice Next
    ask-question