Queue structure is used in ______.

2020

Queue structure is used in ______.

  1. A.

    Polynomial addition

  2. B.

    Recursion

  3. C.

    Depth First Search algorithm

  4. D.

    Breadth First Search algorithm

Attempted by 579 students.

Show answer & explanation

Correct answer: D

A Queue follows the FIFO (First-In, First-Out) principle. Breadth First Search (BFS) explores a graph level-by-level, requiring nodes of the current level to be processed completely before moving to the next. A queue is uniquely suited to keep track of these nodes in the exact order they are discovered.

Explore the full course: Niacl Ao It Specialist