My Report

Data Structure I Practice Test 5


Correct Answer: 2 points | Wrong: -1 point
Grades: A* (100% score) | A (80%-99%) | B (60%-80%) | C (40%-60%) | D (0%-40%)
advertisement

1. What is the time complexity of pre-order traversal in the iterative fashion?

2. What is the longest length path for a node x in random binary search tree for the insertion process?

3. In a full binary tree if number of internal nodes is I, then number of nodes N are?

4. A full binary tree can be generated using ______

5. Select the code snippet which performs level-order traversal.

6. Which of the below diagram is following AVL tree property?
i.data-structure-questions-answers-avl-tree-q3
ii.data-structure-questions-answers-avl-tree-q3a

7. What is a Cartesian tree?

8. Select the code snippet that performs post-order traversal iteratively.

9. Which of the following graph traversals closely imitates level order traversal of a binary tree?

10. Figure below is a balanced binary tree. If a node inserted as child of the node R, how many nodes will become unbalanced?
balanced-binary-tree-questions-answers-q3


 

Manish Bhojasia - Founder & CTO at Sanfoundry
Manish Bhojasia, a technology veteran with 20+ years @ Cisco & Wipro, is Founder and CTO at Sanfoundry. He lives in Bangalore, and focuses on development of Linux Kernel, SAN Technologies, Advanced C, Data Structures & Alogrithms. Stay connected with him at LinkedIn.

Subscribe to his free Masterclasses at Youtube & discussions at Telegram SanfoundryClasses.