Indian Institute of Technology Madras
BS Degree Programme · Examination & Study Paper
Programming, Data Structures and Algorithms using Python
Quiz 1 · 26 Oct 2025 (Afternoon)
Official Paper
Examination Instructions & Guidelines
- Solve on notebook/paper first before checking solutions.
- MCQ: Exactly 1 option is correct. Negative marking applies.
- MSQ: One or more options correct. Select all to score.
- NAT: Numerical response. No negative marking.
- Scientific calculator allowed for all calculations.
- Official answer key is sealed at the end of this sheet.
- Q1MCQ3 Marks·Choose one option

- A

- B

- C

- D

- A
- Q2MCQ3 Marks·Choose one option

- A

- B

- C

- D

- A
- Q3MCQ3 Marks·Choose one option

- A35, 51, 39, 47
- B35, 51, 47
- C35, 51, 43, 47
- D35, 55, 39, 47
- ENone of these
- Q4MCQ3 Marks·Choose one option

- A2
- B3
- C4
- D5
- Q5MCQ3 Marks·Choose one option

- A

- B

- C

- D

- A
- Q6MCQ3 Marks·Choose one option

- AOnly Statement 1
- BOnly Statement 2
- COnly Statement 3
- DStatements 1 and 2
- EStatements 2 and 3
- Q7MCQ3 Marks·Choose one option

- A

- B

- C

- D

- A
- Q8MCQ3 Marks·Choose one option

- A

- B

- C

- D

- A
- Q9MCQ2 Marks·Choose one option

- A1-a, 2-b, 3-c, 4-d
- B1-b, 2-a, 3-d, 4-c
- C1-a, 2-b, 3-d, 4-c
- D1-c, 2-b, 3-a, 4-d
- Q10MSQ3 Marks·Choose all correct options

- A

- B

- C

- D

- E

- A
- Q11MSQ3 Marks·Choose all correct options
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?
- AAll vertices at distance k from s are visited before any vertex at distance k + 1 from s.
- BOnce a vertex is visited, it is never visited again during the traversal.
- CBFS may fail to visit some vertices, even if the graph is connected.
- DThe time complexity of BFS using an adjacency list representation is O(n^2).
- Q12NAT3 Marks·Write the number
Your answer: - Q13NAT3 Marks·Write the number
Your answer: - Q14NAT3 Marks·Write the number
Your answer: - Q15NAT3 Marks·Write the number
Your answer: - Q16NAT3 Marks·Write the number
Your answer: - Q17NAT3 Marks·Write the number
Your answer: