Binary Trees and Traversals - Case Studies

Download Q&A
Q. In a binary tree, if a node has two children, how many leaf nodes can it have at maximum?
  • A. 1
  • B. 2
  • C. 3
  • D. 4
Q. In a binary tree, what is the in-order traversal of the tree with nodes A, B, C, D arranged as follows: A is the root, B is the left child of A, and C is the right child of A, with D as the left child of C?
  • A. A, B, C, D
  • B. B, A, D, C
  • C. B, A, C, D
  • D. B, D, A, C
Q. What is the level-order traversal of a binary tree with root A, left child B, and right child C?
  • A. A, B, C
  • B. B, A, C
  • C. C, B, A
  • D. A, C, B
Q. What is the post-order traversal of a binary tree with root A, left child B, and right child C?
  • A. A, B, C
  • B. B, C, A
  • C. C, B, A
  • D. A, C, B
Q. Which data structure is used to implement depth-first search (DFS) in a binary tree?
  • A. Queue
  • B. Stack
  • C. Array
  • D. Linked List
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