Depth-First Search (DFS) Pretest


Answer the multiple-choice questions below to test your knowledge!


Multiple-Choice Questions:

  1. What is the primary purpose of Depth-First Search (DFS)?





  2. Which data structure is commonly used to implement DFS?





  3. What is the time complexity of DFS for a graph with V vertices and E edges?





  4. Which type of graph is suitable for DFS traversal?





  5. What is the first step in DFS traversal?