
Programming, Data Structures and Algorithms using Python End Term: 31 August 2025, Set QDD1 (May 2025 term)
The IIT Madras BS Programming, Data Structures and Algorithms using Python (PDSA) End Term paper sat on 31 Aug 2025, in the May 2025 term, set QDD1: 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
- 14
- 5
- 6
Show answer
Correct answer
Question 2
Show answer
Correct answer
Question 3
2
3
4
5
Show answer
Correct answer
5
Question 4
Show answer
Correct answer
Question 5
Show answer
Correct answer
Question 6
Given a weighted graph where weights of all edges are unique, there is always a unique shortest path from a source to destination in such a graph.
True
False
Show answer
Correct answer
False
Question 7
[65, 50, 55, 30, 40, 35, 45, 10, 20]
[65, 50, 55, 40, 30, 35, 45, 10, 20]
[65, 55, 50, 40, 30, 35, 45, 10, 20]
[65, 50, 55, 40, 30, 35, 45, 20, 10]
Show answer
Correct answer
[65, 50, 55, 40, 30, 35, 45, 10, 20]
Question 8
Show answer
Correct answer
Question 9
Show answer
Correct answer
Question 10
4
5
6
7
Show answer
Correct answer
6
Question 11
Show answer
Correct answer
Question 12
Show answer
Correct answer
Question 13
14
15
13
16
Show answer
Correct answer
14
Question 14
Show answer
Correct answer
Question 15
Which of the following sorting algorithms will have the same time complexity irrespective of the sequence of elements in the input?
Selection Sort
Merge Sort
Quick Sort
Insertion Sort
Show answer
Correct answers
Selection Sort
Merge Sort
Question 16
Show answer
Correct answers
Question 17
13
8
9
10
11
Show answer
Correct answers
8
9
Question 18
10
20
22
25
40
Show answer
Correct answers
10
22
40
Question 19
Show answer
Correct answers
Question 20
An undirected graph has 300 edges. What is the minimum number of vertices it must have?
Show answer
Correct answer: 25
Question 21
Show answer
Correct answer: 8
Question 22
Show answer
Correct answer: 14
Question 23
A binary tree has 7 nodes. What is the minimum possible height of this tree (assuming the empty tree height is 0)?
Show answer
Correct answer: 3
Question 24
Show answer
Correct answer: 6
Question 25
Show answer
Correct answer: 76