Binary Trees and Traversals - Applications - Case Studies

Download Q&A
Q. In a binary tree, if a node has only one child, which traversal will still visit all nodes?
  • A. In-order
  • B. Pre-order
  • C. Post-order
  • D. All of the above
Q. In a binary tree, what does the term 'leaf node' refer to?
  • A. A node with two children
  • B. A node with one child
  • C. A node with no children
  • D. A node that is the root
Q. In a binary tree, what is the time complexity of searching for an element in the worst case?
  • A. O(log n)
  • B. O(n)
  • C. O(n log n)
  • D. O(1)
Q. What is the result of an inorder traversal of a binary search tree?
  • A. Sorted order of elements
  • B. Reverse sorted order of elements
  • C. Random order of elements
  • D. Level order of elements
Q. What is the time complexity of inserting a node in a balanced binary search tree?
  • A. O(n)
  • B. O(log n)
  • C. O(n log n)
  • D. O(1)
Q. Which of the following is NOT a characteristic of a binary tree?
  • A. Each node has at most two children
  • B. It can be empty
  • C. All nodes have the same number of children
  • D. It has a root node
Showing 1 to 6 of 6 (1 Pages)
Soulshift Feedback ×

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

Not likely Very likely