Question: In which scenario is Breadth-First Search (BFS) preferred over Depth-First Search (DFS)?
Options:
Correct Answer: When the shortest path is required
Solution:
BFS is preferred when the shortest path is required because it explores all neighbors at the present depth prior to moving on to nodes at the next depth level.