This section covers the questions for the Tree Data Structure using JavaScript to clear all your concepts.
Question 1
Which of the following is true about Binary Trees?
Every binary tree is either complete or full.
Every complete binary tree is also a full binary tree.
Every full binary tree is also a complete binary tree.
No binary tree is both complete and full.
None of the above
Question 2
What are the main applications of tree data structure?
1, 2, 3, 4 and 6
1, 2, 3, 4 and 5
1, 3, 4, 5 and 6
1, 2, 3, 4, 5 and 6
Question 3
Question 4
Question 5
The maximum number of binary trees that can be formed with three unlabelled nodes is:
1
5
4
3
Question 6
The number of leaf nodes in a rooted tree of n nodes, with each node having 0 or 3 children is:
n/2
(n-1)/3
(n-1)/2
(2n+1)/3
Question 7
A weight-balanced tree is a binary tree in which for each node. The number of nodes in the left sub tree is at least half and at most twice the number of nodes in the right sub tree. The maximum possible height (number of nodes on the path from the root to the farthest leaf) of such a tree on n nodes is best described by which of the following? a) \\log_2 n b) \\log_{4/3} n c) \\log_3 n d) \\log_{3/2} n
A
B
C
D
Question 8
Question 9
Question 10
There are 10 questions to complete.