The process of visiting all the nodes of a tree and performing an operation (such as a print operation) is called ____.

  • Pruning
  • Rotating
  • Sorting
  • Traversal
The process of visiting all the nodes of a tree and performing an operation is known as tree traversal. Tree traversal is essential for various tree-based algorithms and operations like printing the contents of a tree.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *