
Programming, Data Structures and Algorithms using Python Quiz 1: 26 October 2025 (September 2025 term)
The IIT Madras BS Programming, Data Structures and Algorithms using Python (PDSA) Quiz 1 paper sat on 26 Oct 2025, in the September 2025 term: 17 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.
- 17
- 50
- 120 min
- 9
- 2
- 6
Show answer
Correct answer
Question 2
Show answer
Correct answer
Question 3
35, 51, 39, 47
35, 51, 47
35, 51, 43, 47
35, 55, 39, 47
None of these
Show answer
Correct answer
35, 51, 43, 47
Question 4
2
3
4
5
Show answer
Correct answer
5
Question 5
Show answer
Correct answer
Question 6
Only Statement 1
Only Statement 2
Only Statement 3
Statements 1 and 2
Statements 2 and 3
Show answer
Correct answer
Only Statement 1
Question 7
Show answer
Correct answer
Question 8
Show answer
Correct answer
Question 9
1-a, 2-b, 3-c, 4-d
1-b, 2-a, 3-d, 4-c
1-a, 2-b, 3-d, 4-c
1-c, 2-b, 3-a, 4-d
Show answer
Correct answer
1-b, 2-a, 3-d, 4-c
Question 10
Show answer
Correct answers
Question 11
Consider a connected, undirected graph G with n vertices. A Breadth-First Search (BFS) traversal is performed starting from a source vertex s. Let d(s, v) denote the shortest distance (in terms of number of edges) from s to vertex v.
Which of the following statements is true about the BFS traversal?
All vertices at distance k from s are visited before any vertex at distance k + 1 from s.
Once a vertex is visited, it is never visited again during the traversal.
BFS may fail to visit some vertices, even if the graph is connected.
The time complexity of BFS using an adjacency list representation is O(n²).
Show answer
Correct answers
All vertices at distance k from s are visited before any vertex at distance k + 1 from s.
Once a vertex is visited, it is never visited again during the traversal.
Question 12
Show answer
Correct answer: 2
Question 13
Show answer
Correct answer: 24
Question 14
Show answer
Correct answer: 6
Question 15
Show answer
Correct answer: 190
Question 16
Show answer
Correct answer: 4
Question 17
Show answer
Correct answer: 2