Which of the following is a graph traversal technique?

2025

Which of the following is a graph traversal technique?

Answer: A. DFSCorrect answer: DFS. Depth First Search is a standard graph traversal technique. It explores one branch deeply before backtracking to visit other vertices.

  1. A.

    DFS

  2. B.

    Stack

  3. C.

    Heap

  4. D.

    Priority Queue

  5. E.

    None of the above

Attempted by 841 students.

Show answer & explanation

Correct answer: A

Correct answer: DFS.

Depth First Search is a standard graph traversal technique. It explores one branch deeply before backtracking to visit other vertices.

Explore the full course: Niacl Ao It Specialist

Loading lesson…