Have you got knowledge about the binary trees in data structure? To test your knowledge, take this tree data structure quiz. We have got simple as well as complex questions for your practice. You can take up the quiz and pick the maximum correct answers to get a good score. Don't feel bad even if you miss out on some See morequestions, as you will get the correct one there and then. This quiz will not only test your knowledge but enhance it too. All the best!
(4, 7)
(7,4)
(8, 3)
(3,8)
Rate this question:
Rate this question:
Left child of the node labeled 6
Right child of the node labeled 14
Right child of the node labeled 6
Left child of the node labeled 9
Rate this question:
5,3,4
5,3,12
3,5,12
3,5,36
Rate this question:
Yes
No
Rate this question:
4,4
3,3
3,4
4,3
Rate this question:
10, 20, 15, 23, 25, 35, 42, 39, 30
15, 10, 25, 23, 20, 42, 35, 39, 30
15, 20, 10, 23, 25, 42, 35, 39, 30
15, 10, 23, 25, 20, 35, 42, 39, 30
Rate this question:
D,H,E,I,B,F,G,C,A
A,C,G,F,B,I,E,H,D
D,H,I,E, B,F,G,C ,A
D,H,I,E,G,F,B,C,A
Rate this question:
A1[ ] = {8, 3, 6, 1, 4, 7, 10, 14, 13} A2[ ] = {8, 10, 14, 3, 6, 4, 1, 7, 13}
B1[ ]= {15, 10, 25, 23, 20, 42, 35, 39, 30} B2[ ] ={15, 20, 10, 23, 25, 42, 35, 39, 30}
C1[ ]={7, 5, 1, 8, 3, 6, 9, 4, 2} C2[ ]={ 9,7, 5, 1, 8, 3, 2,6, 4}
D1[ ]={15, 10, 25, 23, 20, 42, 35, 39, 30} D2[ ]={ 15,35,39,10,25,20,23,42,30}
Rate this question:
Only A
A and C
A, B, and C
Only B
Rate this question:
8
4
11
12
Rate this question:
2
3
4
5
Rate this question:
18
20
30
15
Rate this question:
8
7,8
7
6,7
Rate this question:
11
16
14
10
Rate this question:
True
False
Rate this question:
Just build the tree with the given input
Find the median of the set of elements given, make it a root
Use trial and error
Use dynamic programming to build the tree
Rate this question:
It is required to balance Node A
It is required to balance the Right child of A
It is required to balance the Parent of node A
Balancing may or may not be required for A
Rate this question:
Descending order
Ascending order
Level-wise order
No specific order
Rate this question:
Build function of max heap
Build function of min heap
Build function of any heap
Search element in any heap
Rate this question:
O(n)
O(logn)
O(1)
O(n logn)
Rate this question:
O(n*n*logn)
O(n*logn)
O(n*n)
O(n *logn *logn)
Rate this question:
2
7
3
15
Rate this question:
Root
Last level
Second level
Anywhere in heap
Rate this question:
Yes
No
Both I and II
None of these
Rate this question:
14,13,8,12,10
14,12,13,10,8
14,13,12,8,10
14,13,12,10,8
Rate this question:
The smallest element in a max-heap is always at a leaf node.
The second largest element in a max-heap is always a child of the root node.
A max-heap can be constructed from a binary search tree in Θ(n) time.
A binary search tree can be constructed from a max-heap in Θ(n) time.
Rate this question:
4
5
2
3
Rate this question:
Quiz Review Timeline (Updated): Jun 28, 2024 +
Our quizzes are rigorously reviewed, monitored and continuously updated by our expert board to maintain accuracy, relevance, and timeliness.
Wait!
Here's an interesting quiz for you.