Binary Trees and Traversals - Applications - Problem Set

Download Q&A
Q. In a binary tree, what is the in-order traversal of the tree with nodes 1, 2, 3?
  • A. [1, 2, 3]
  • B. [2, 1, 3]
  • C. [1, 3, 2]
  • D. [3, 2, 1]
Q. In a binary tree, what is the in-order traversal of the tree with nodes A, B, C?
  • A. A, B, C
  • B. B, A, C
  • C. B, C, A
  • D. C, B, A
Q. What is the height of a binary tree with a single node?
  • A. 0
  • B. 1
  • C. 2
  • D. Depends on the number of children
Q. What is the post-order traversal of a binary tree with nodes A, B, C?
  • A. A, B, C
  • B. B, C, A
  • C. C, B, A
  • D. A, C, B
Q. What is the primary use of a binary tree in computer science?
  • A. To store data in a linear fashion
  • B. To represent hierarchical data
  • C. To perform arithmetic operations
  • D. To manage memory allocation
Q. Which of the following is NOT a type of binary tree?
  • A. Full Binary Tree
  • B. Complete Binary Tree
  • C. Balanced Binary Tree
  • D. Circular Binary Tree
Q. Which traversal method is used to get a sorted output from a binary search tree?
  • A. Pre-order
  • B. Post-order
  • C. In-order
  • D. Level-order
Showing 1 to 7 of 7 (1 Pages)
Soulshift Feedback ×

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

Not likely Very likely