Join WhatsApp ChannelDaily MCQs & Exam Updates
Computer Science Medium CSS PMS FPSC PPSC NTS Uploaded: 01 Jul 2026

Which data structure is primarily used by the Depth-First Search (DFS) algorithm?

  • A Queue
  • B Hash Table
  • C Stack
  • D Heap
Correct Answer: Option C — Stack
Explanation:
Depth-First Search (DFS) uses a stack to keep track of nodes during traversal. The algorithm explores one branch of a graph or tree as deepl...
Submitted by: Chandi
Related MCQs