Question 1
P R T S U Q V
P R T S Q U V
P R T U S V Q
P R T S U V Q

The IIT Madras BS Programming, Data Structures and Algorithms using Python (PDSA) Quiz 2 paper sat on 16 Mar 2025, in the January 2025 term: 16 questions for 50 marks in 120 minutes. Every question is below with its answer. Take it as a timed mock test to be marked, or read it through first.
P R T S U Q V
P R T S Q U V
P R T U S V Q
P R T S U V Q
Correct answer
P R T S U V Q
Only statement I is true
Only statement II is true
Both statements are true
Both statements are not true
Correct answer
Only statement II is true
What is the minimum and maximum number of nodes possible in AVL Trees with height 9? Assume that the height of the empty tree is 0.
Minimum: 255, Maximum: 1023
Minimum: 9, Maximum: 255
Minimum: 88, Maximum: 511
Minimum: 256, Maximum: 511
Correct answer
Minimum: 88, Maximum: 511
2
3
4
5
Correct answer
4
Correct answer
Correct answer
Correct answer
3
4
5
6
Correct answer
3
Correct answer
A - 3, B - 3, C - 5, D - 1, E - 5, F - 4
A - 3, B - 2, C - 5, D - 2, E - 5, F - 4
A - 3, B - 3, C - 5, D - 2, E - 5, F - 4
A - 3, B - 2, C - 5, D - 1, E - 5, F - 4
Correct answer
A - 3, B - 2, C - 5, D - 1, E - 5, F - 4
Which of the following is/are always true about the Floyd-Warshall algorithm?
Correct answers
Which of the following arrays represent a valid min-heap when implemented as a 0-indexed array?
Correct answers
Correct answer: 72
Correct answer: 9
Based on the above data, answer the given subquestions.
Correct answer: 6
Based on the above data, answer the given subquestions.
Correct answer: 2