Indian Institute of Technology Madras
BS Degree Programme · Examination & Study Paper
Programming, Data Structures and Algorithms using Python
End Term · 31 Aug 2025 (Afternoon)
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.
- Q1MCQ4 Marks·Choose one option

- A

- B

- C

- D

- A
- Q2MCQ4 Marks·Choose one option

- A

- B

- C

- D

- A
- Q3MCQ4 Marks·Choose one option

- A

- B

- C

- D

- A
- Q4MCQ4 Marks·Choose one option
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.
- AOnly statement 1 is true
- BOnly statement 2 is true
- CBoth statements 1 and 2 are true
- DBoth statements 1 and 2 are false
- Q5MCQ4 Marks·Choose one option
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.
- ATRUE
- BFALSE
- Q6MCQ4 Marks·Choose one option

- A3, 5, 4, 10
- B3, 5, 5, 9
- C2, 5, 5, 10
- D2, 5, 4, 9
- Q7MCQ4 Marks·Choose one option

- A

- B

- C

- D

- A
- Q8MCQ4 Marks·Choose one option

- A

- B

- C

- D

- A
- Q9MCQ4 Marks·Choose one option

- A4
- B5
- C6
- D7
- Q10MCQ4 Marks·Choose one option

- A

- B

- C

- D

- A
- Q11MCQ4 Marks·Choose one option

- A

- B

- C

- D

- A
- Q12MCQ4 Marks·Choose one option

- AEdges {cd, bd}
- BEdges {cb, cd, bt}
- CEdges {ab, cd, cb}
- DEdges {bt, bd}
- Q13MCQ4 Marks·Choose one option

- AOnly statement 1 is correct
- BOnly statement 2 is correct
- CBoth the statements are correct
- DBoth the statements are wrong
- Q14MCQ4 Marks·Choose one option

- A

- B

- C

- D

- A
- Q15MSQ4 Marks·Choose all correct options

- A

- B

- C

- D

- A
- Q16MSQ4 Marks·Choose all correct options

- A17
- B37
- C62
- D57
- E82
- Q17MSQ4 Marks·Choose all correct options

- A23, 36, 72, 12, 54, 83
- B36, 72, 23, 54, 12, 83
- C36, 23, 72, 12, 83, 54
- D36, 23, 72, 12, 54, 83
- Q18MSQ4 Marks·Choose all correct options

- A1
- B5
- C3
- D4
- E6
- F7
- Q19MSQ4 Marks·Choose all correct options

- A2
- B3
- C4
- D5
- E9
- Q20MSQ4 Marks·Choose all correct options

- A

- B

- C

- D

- E

- F

- A
- Q21NAT4 Marks·Write the number
What is the maximum number of edges in a directed graph with 9 vertices?
Your answer: - Q22NAT4 Marks·Write the number
Your answer: - Q23NAT4 Marks·Write the number
What is the minimum possible height of a binary tree with 12 nodes (assuming the empty tree height is 0)?
Your answer: - Q24NAT4 Marks·Write the number
Your answer: - Q25NAT4 Marks·Write the number
Your answer: