
Programming, Data Structures and Algorithms using Python End Term: 31 August 2025, Set QDD3 (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 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
- 14
- 6
- 5
Show answer
Correct answer
Question 2
Show answer
Correct answer
Question 3
Show answer
Correct answer
Question 4
Consider the following statements:
1. While creating a DFS tree for a directed graph, among non-tree edges, only back edges correspond to cycles.
2. The depth of any DFS tree rooted at a vertex is at least as much as the depth of any BFS tree rooted at the same vertex.
Choose the correct option.
Only statement 1 is true
Only statement 2 is true
Both statements 1 and 2 are true
Both statements 1 and 2 are false
Show answer
Correct answer
Both statements 1 and 2 are true
Question 5
Given a graph where all edges have positive weights, the shortest path identified by Dijkstra's and Bellman Ford algorithm may be different but path weight would be same.
TRUE
FALSE
Show answer
Correct answer
TRUE
Question 6
3, 5, 4, 10
3, 5, 5, 9
2, 5, 5, 10
2, 5, 4, 9
Show answer
Correct answer
2, 5, 4, 9
Question 7
Show answer
Correct answer
Question 8
Show answer
Correct answer
Question 9
4
5
6
7
Show answer
Correct answer
5
Question 10
Show answer
Correct answer
Question 11
Show answer
Correct answer
Question 12
Edges {cd, bd}
Edges {cb, cd, bt}
Edges {ab, cd, cb}
Edges {bt, bd}
Show answer
Correct answer
Edges {ab, cd, cb}
Question 13
Only statement 1 is correct
Only statement 2 is correct
Both the statements are correct
Both the statements are wrong
Show answer
Correct answer
Only statement 2 is correct
Question 14
Show answer
Correct answer
Question 15
Show answer
Correct answers
Question 16
17
37
62
57
82
Show answer
Correct answers
17
37
82
Question 17
23, 36, 72, 12, 54, 83
36, 72, 23, 54, 12, 83
36, 23, 72, 12, 83, 54
36, 23, 72, 12, 54, 83
Show answer
Correct answers
23, 36, 72, 12, 54, 83
36, 23, 72, 12, 54, 83
Question 18
1
5
3
4
6
7
Show answer
Correct answers
1
3
6
Question 19
2
3
4
5
9
Show answer
Correct answers
2
5
9
Question 20
Show answer
Correct answers
Question 21
What is the maximum number of edges in a directed graph with 9 vertices?
Show answer
Correct answer: 72
Question 22
Show answer
Correct answer: 10
Question 23
What is the minimum possible height of a binary tree with 12 nodes (assuming the empty tree height is 0)?
Show answer
Correct answer: 4
Question 24
Show answer
Correct answer: 5
Question 25
Show answer
Correct answer: 66