×

Multiple-Choice Questions

Web Technologies MCQs

Computer Science Subjects MCQs

Databases MCQs

Programming MCQs

Testing Software MCQs

Digital Marketing Subjects MCQs

Cloud Computing Softwares MCQs

AI/ML Subjects MCQs

Engineering Subjects MCQs

Office Related Programs MCQs

Management MCQs

More

Which of the following data structures is used for depth first traversal of a graph?

5. Which of the following data structures is used for depth first traversal of a graph?

  1. Stack
  2. Graph
  3. Queue
  4. Tree

Answer

The correct answer is: A) Stack

Explanation

For breadth first traversal of a graph, queue is used whereas for depth first traversal of a graph, stack is used.

Comments and Discussions!

Load comments ↻






Copyright © 2024 www.includehelp.com. All rights reserved.