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

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

- A

- B

- C

- D

- A
- Q5MCQ4 Marks·Choose one option

- A

- B

- C

- A
- Q6MCQ4 Marks·Choose one option
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.
- ATrue
- BFalse
- Q7MCQ4 Marks·Choose one option

- A[65, 50, 55, 30, 40, 35, 45, 10, 20]
- B[65, 50, 55, 40, 30, 35, 45, 10, 20]
- C[65, 55, 50, 40, 30, 35, 45, 10, 20]
- D[65, 50, 55, 40, 30, 35, 45, 20, 10]
- Q8MCQ4 Marks·Choose one option

- A

- B

- C

- D

- A
- Q9MCQ4 Marks·Choose one option

- A

- B

- C

- D

- A
- Q10MCQ4 Marks·Choose one option

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

- A

- B

- C

- D

- A
- Q12MCQ4 Marks·Choose one option

- A

- B

- C

- D

- A
- Q13MCQ4 Marks·Choose one option

- A14
- B15
- C13
- D16
- Q14MCQ4 Marks·Choose one option

- A

- B

- C

- D

- A
- Q15MSQ4 Marks·Choose all correct options
Which of the following sorting algorithms will have the same time complexity irrespective of the sequence of elements in the input?
- ASelection Sort
- BMerge Sort
- CQuick Sort
- DInsertion Sort
- Q16MSQ4 Marks·Choose all correct options

- A

- B

- C

- D

- A
- Q17MSQ4 Marks·Choose all correct options

- A13
- B8
- C9
- D10
- E11
- Q18MSQ4 Marks·Choose all correct options

- A10
- B20
- C22
- D25
- E40
- Q19MSQ4 Marks·Choose all correct options

- A

- B

- C

- D

- E

- F

- A
- Q20NAT4 Marks·Write the number
An undirected graph has 300 edges. What is the minimum number of vertices it must have?
Your answer: - Q21NAT4 Marks·Write the number
Your answer: - Q22NAT4 Marks·Write the number
Your answer: - Q23NAT4 Marks·Write the number
A binary tree has 7 nodes. What is the minimum possible height of this tree (assuming the empty tree height is 0)?
Your answer: - Q24NAT4 Marks·Write the number
Your answer: - Q25NAT4 Marks·Write the number
Your answer: