Binary Trees and Traversals - Complexity Analysis - Applications

Download Q&A
Q. In a complete binary tree, what is the relationship between the number of nodes and the height?
  • A. Height = log(n)
  • B. Height = n
  • C. Height = n/2
  • D. Height = n^2
Q. What is the primary application of a binary tree?
  • A. Sorting data
  • B. Storing hierarchical data
  • C. Searching data
  • D. All of the above
Q. What traversal method would you use to delete a binary tree?
  • A. Pre-order
  • B. In-order
  • C. Post-order
  • D. Level-order
Q. Which of the following is NOT a valid application of binary trees?
  • A. Expression parsing
  • B. Priority queues
  • C. Database indexing
  • D. Sorting algorithms
Q. Which traversal method is used to get the nodes of a binary tree in non-decreasing order?
  • A. Pre-order
  • B. Post-order
  • C. In-order
  • D. Level-order
Showing 1 to 5 of 5 (1 Pages)
Soulshift Feedback ×

On a scale of 0–10, how likely are you to recommend The Soulshift Academy?

Not likely Very likely