Binary Trees and Traversals - Applications - Applications

Download Q&A
Q. How many leaf nodes can a full binary tree with n internal nodes have?
  • A. n + 1
  • B. n
  • C. 2n
  • D. n/2
Q. In a binary tree, how many leaf nodes can there be at maximum if there are n internal nodes?
  • A. n + 1
  • B. n
  • C. 2n
  • D. n - 1
Q. In a binary tree, what is the in-order traversal of the nodes?
  • A. Visit left subtree, root, right subtree
  • B. Visit root, left subtree, right subtree
  • C. Visit left subtree, right subtree, root
  • D. Visit right subtree, root, left subtree
Q. What is the level-order traversal of a binary tree?
  • A. Visit nodes from top to bottom, left to right
  • B. Visit nodes from bottom to top, right to left
  • C. Visit nodes in in-order
  • D. Visit nodes in pre-order
Q. What is the post-order traversal of a binary tree with nodes 1, 2, and 3 where 1 is the root, 2 is the left child, and 3 is the right child?
  • A. 1, 2, 3
  • B. 2, 3, 1
  • C. 3, 2, 1
  • D. 1, 3, 2
Q. What is the primary use of a binary tree in applications?
  • A. Sorting data
  • B. Storing hierarchical data
  • C. Searching for data
  • D. All of the above
Q. Which of the following is NOT a property of a binary tree?
  • A. Each node has at most two children
  • B. The left child is always less than the parent
  • C. The right child is always greater than the parent
  • D. It can be empty
Q. Which traversal method is used to create a mirror image of a binary tree?
  • A. In-order
  • B. Post-order
  • C. Pre-order
  • D. Level-order
Showing 1 to 8 of 8 (1 Pages)
Soulshift Feedback ×

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

Not likely Very likely