Indian Institute of Technology Madras
BS Degree Programme · Examination & Study Paper
Programming, Data Structures and Algorithms using Python
Binary trees, BST & AVL trees
Examination Instructions & Guidelines
- Solve on notebook/paper first before checking solutions.
- MCQ: Exactly 1 option is correct. Negative marking applies.
- MSQ: One or more options correct. Select all to score.
- NAT: Numerical response. No negative marking.
- Scientific calculator allowed for all calculations.
- Official answer key is sealed at the end of this sheet.
End Term · 31 Aug 2025 (FN)End Term
- Q1MSQ4 Marks·Choose all correct options

- A10
- B20
- C22
- D25
- E40
- Q2NAT4 Marks·Write the number
A binary tree has 7 nodes. What is the minimum possible height of this tree (assuming the empty tree height is 0)?
Your answer:
End Term · 31 Aug 2025 (AN)End Term
- Q3MSQ4 Marks·Choose all correct options

- A2
- B3
- C4
- D5
- E9
- Q4NAT4 Marks·Write the number
What is the minimum possible height of a binary tree with 12 nodes (assuming the empty tree height is 0)?
Your answer:
Quiz 2 · 3 Aug 2025 (AN)Quiz 2
- Q5MCQ3 Marks·Choose one option

- A7
- B8
- C9
- D10
- Q6MCQ3 Marks·Choose one option

- A

- B

- C

- D

- A
- Q7MSQ3 Marks·Choose all correct options

- A

- B

- C

- D

- A
- Q8NAT3 Marks·Write the number
Your answer:
End Term · 13 Apr 2025 (AN)End Term
- Q9MCQ4 Marks·Choose one option

- A8
- B7
- C6
- D5
- Q10MCQ4 Marks·Choose one option
While inserting the elements [13, 7, 26, 33, 5, 10, 12, 11, 9] in an empty binary search tree (BST) in the sequence shown, the element at maximum depth is__.
- A33
- B9
- C11
- D5
- Q11MCQ4 Marks·Choose one option

- A4
- B5
- C11
- D12
End Term · 22 Dec 2024 (FN)End Term
- Q12MCQ4 Marks·Choose one option

- AOnly statement I is true
- BOnly statement II is true
- CBoth statements are true
- DBoth statements are not true
- Q13MCQ4 Marks·Choose one option
Which of the following statement(s) is/are correct about the traversals in a binary search tree? 1. The inorder traversal sorts the elements in descending order. 2. The root of the tree is always the first element of the postorder traversal.
- AOnly statement 1 is correct
- BOnly statement 2 is correct
- CBoth the statements are correct
- DNone of the statements are correct
- Q14NAT4 Marks·Write the number
Your answer: - Q15NAT4 Marks·Write the number
Your answer:
End Term · 22 Dec 2024 (AN)End Term
- Q16MCQ4 Marks·Choose one option

- AOnly statement I is true
- BOnly statement II is true
- CBoth statements are true
- DBoth statements are not true
- Q17MCQ4 Marks·Choose one option
Which of the following statement(s) is/are correct about the traversals in a binary search tree? 1. The root of the tree is always the first element of the inorder traversal. 2. The root of the tree is always the last element of the postorder traversal.
- AOnly statement 1 is correct
- BOnly statement 2 is correct
- CBoth the statements are correct
- DNone of the statements are correct
- Q18NAT4 Marks·Write the number
Your answer: