Assignment - 2_ Attempt review-1
Assignment - 2_ Attempt review-1
Question 1
Correct
Which of the following order of elements are inserted into an empty AVL tree,
so that it is possible to get the above AVL tree?
b. None
https://cet.iitp.ac.in/moodle/mod/quiz/review.php?attempt=94588&cmid=1893 1/3
11/18/24, 3:33 PM Assignment - 2: Attempt review
Question 2
Correct
Question 3
Correct
a. When Item is the last element in the array or is not there at all
https://cet.iitp.ac.in/moodle/mod/quiz/review.php?attempt=94588&cmid=1893 2/3
11/18/24, 3:33 PM Assignment - 2: Attempt review
Question 4
Correct
The following numbers are inserted into an empty binary search tree in the
given order: 10, 1, 3, 5, 15, 12, 16. What is the height of the binary search tree (the
height is the maximum distance of a leaf node from the root)?
a. 5
b. 4
c. 3
d. 2
Question 5
Correct
a) Recoloring of nodes
b) Rotation (Left and Right)
a. Only a
b. Only b
c. Both a and b
d. Neither a nor b
https://cet.iitp.ac.in/moodle/mod/quiz/review.php?attempt=94588&cmid=1893 3/3