
Programming, Data Structures and Algorithms using Python End Term: 13 April 2025, Set QDD3 (January 2025 term)
The IIT Madras BS Programming, Data Structures and Algorithms using Python (PDSA) End Term paper sat on 13 Apr 2025, in the January 2025 term, set QDD3: 25 questions for 100 marks in 180 minutes. Every question is below with its answer. Take it as a timed mock test to be marked, or read it through first.
- 25
- 100
- 180 min
- 13
- 6
- 6
Show answer
Correct answer
Question 2
2
3
4
5
Show answer
Correct answer
3
Question 3
What is the worst case time complexity of Selection Sort ?
Show answer
Correct answer
Question 4
Show answer
Correct answer
Question 5
Consider a graph G with V vertices and E edges represented using an adjacency list. What is the worst case complexity for Breadth First Search?
Show answer
Correct answer
Question 6
8
7
6
5
Show answer
Correct answer
6
Question 7
[41, 29, 26, 17, 15, 10, 9, 12, 11]
[41, 29, 26, 17, 15, 10, 9, 11, 12]
[41, 29, 26, 15, 17, 10, 9, 11, 12]
[41, 29, 26, 15, 17, 10, 9, 12, 11]
Show answer
Correct answer
[41, 29, 26, 17, 15, 10, 9, 11, 12]
Question 8
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__.
33
9
11
5
Show answer
Correct answer
11
Question 9
1
2
3
4
Show answer
Correct answer
3
Question 10
Show answer
Correct answer
Question 11
8
6
4
2
Show answer
Correct answer
2
Question 12
5
6
7
8
Show answer
Correct answer
8
Question 13
4
5
11
12
Show answer
Correct answer
5
Question 14
Show answer
Correct answers
Question 15
22, 33, 44, 52, 26, 63
22, 26, 33, 44, 52, 63
26, 44, 33, 22, 52, 63
33, 44, 52, 22, 26, 63
44, 33, 52, 22, 26, 63
Show answer
Correct answers
22, 33, 44, 52, 26, 63
22, 26, 33, 44, 52, 63
26, 44, 33, 22, 52, 63
Question 16
Which of the following statement is/are false?
Show answer
Correct answers
Question 17
Which of the below statements are true about Dynamic programming?
Increases both time complexity and space complexity.
It replaces recursion with iteration, so there are no stack overflow errors.
Increases time complexity and decreases space complexity.
It avoids computing sub-problems more than once.
Show answer
Correct answers
It replaces recursion with iteration, so there are no stack overflow errors.
It avoids computing sub-problems more than once.
Question 18
Which of these correspond to non-polynomial time complexity?
Show answer
Correct answers
Question 19
Show answer
Correct answers
Question 20
Show answer
Correct answer: 6
Question 21
Show answer
Correct answer: 15
Question 22
Show answer
Correct answer: 164
Question 23
Show answer
Correct answer: 8
Question 24
Show answer
Correct answer: 18
Question 25
Show answer
Correct answer: 10