Indian Institute of Technology Madras
BS Degree Programme · Examination & Study Paper
Programming, Data Structures and Algorithms using Python
End Term · 13 Apr 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

- A2
- B3
- C4
- D5
- Q3MCQ4 Marks·Choose one option
What is the worst case time complexity of Selection Sort ?
- A

- B

- C

- D

- A
- Q4MCQ4 Marks·Choose one option

- A

- B

- C

- D

- A
- Q5MCQ4 Marks·Choose one option
Consider a graph G with V vertices and E edges represented using an adjacency list. What is the worst case complexity for Breadth First Search?
- A

- B

- C

- D

- A
- Q6MCQ4 Marks·Choose one option

- A8
- B7
- C6
- D5
- Q7MCQ4 Marks·Choose one option

- A[41, 29, 26, 17, 15, 10, 9, 12, 11]
- B[41, 29, 26, 17, 15, 10, 9, 11, 12]
- C[41, 29, 26, 15, 17, 10, 9, 11, 12]
- D[41, 29, 26, 15, 17, 10, 9, 12, 11]
- Q8MCQ4 Marks·Choose one option
While inserting the elements [13, 7, 26, 33, 5, 10, 12, 11, 9] in an empty binary search tree (BST) in the sequence shown, the element at maximum depth is__.
- A33
- B9
- C11
- D5
- Q9MCQ4 Marks·Choose one option

- A1
- B2
- C3
- D4
- Q10MCQ4 Marks·Choose one option

- A

- B

- C

- D

- A
- Q11MCQ4 Marks·Choose one option

- A8
- B6
- C4
- D2
- Q12MCQ4 Marks·Choose one option

- A5
- B6
- C7
- D8
- Q13MCQ4 Marks·Choose one option

- A4
- B5
- C11
- D12
- Q14MSQ4 Marks·Choose all correct options

- A

- B

- C

- D

- A
- Q15MSQ4 Marks·Choose all correct options

- A22, 33, 44, 52, 26, 63
- B22, 26, 33, 44, 52, 63
- C26, 44, 33, 22, 52, 63
- D33, 44, 52, 22, 26, 63
- E44, 33, 52, 22, 26, 63
- Q16MSQ4 Marks·Choose all correct options
Which of the following statement is/are false?
- A

- B

- C

- D

- A
- Q17MSQ4 Marks·Choose all correct options
Which of the below statements are true about Dynamic programming?
- AIncreases both time complexity and space complexity.
- BIt replaces recursion with iteration, so there are no stack overflow errors.
- CIncreases time complexity and decreases space complexity.
- DIt avoids computing sub-problems more than once.
- Q18MSQ4 Marks·Choose all correct options
Which of these correspond to non-polynomial time complexity?
- A

- B

- C

- D

- E

- A
- Q19MSQ4 Marks·Choose all correct options

- A

- B

- C

- D

- E

- A
- Q20NAT4 Marks·Write the number
Your answer: - Q21NAT4 Marks·Write the number
Your answer: - Q22NAT4 Marks·Write the number
Your answer: - Q23NAT4 Marks·Write the number
Your answer: - Q24NAT4 Marks·Write the number
Your answer: - Q25NAT4 Marks·Write the number
Your answer: