PDSA End Term: 1 September 2024, Set QDF1 (May 2024 term)
The IIT Madras BS Programming, Data Structures and Algorithms using Python (PDSA) End Term paper sat on 1 Sept 2024, in the May 2024 term, set QDF1: 25 questions for 100 marks in 180 minutes. Every question is below with its answer. Take it as a timed mock test to be marked, or read it through first.
- 25
- 100
- 180 min
- 16
- 5
- 4
Show answer
Correct answer
Question 2
8
9
10
11
Show answer
Correct answer
8
Question 3
Show answer
Correct answer
Question 4
1
2
3
4
Show answer
Correct answer
4
Question 5
Show answer
Correct answer
Question 6
6,3,2,1,4,5,7
6,3,2,1,5,4,7
6,3,2,4,1,5,7
6,3,5,7,2,4,1
Show answer
Correct answer
6,3,2,1,4,5,7
Question 7
4
5
3
6
Show answer
Correct answer
6
Question 8
Only I is correct
Only II is Correct
Both I and II are correct
Both I and II are incorrect
Show answer
Correct answer
Only II is Correct
Question 9
Only statement I and II are correct
Only statement I and III are correct
Only statement II and III are correct
All statements are correct
All statements are incorrect
Show answer
Correct answer
Only statement I and II are correct
Question 10
12
11
14
8 is a leaf node.
Show answer
Correct answer
11
Question 11
Show answer
Correct answer
Question 12
Show answer
Correct answer
Question 13
14
25
19
20
Show answer
Correct answer
19
Question 14
Let Z be an NP-complete problem and X and Y be two other problems not known to be in NP. X is polynomial time reducible to Z and Z is polynomial-time reducible to Y. Which one of the following statements is true?
Y is NP-complete
Y is NP-hard
X is NP-complete
X is NP-hard
Show answer
Correct answer
Y is NP-hard
Question 15
Show answer
Correct answer: 3
Question 16
Show answer
Correct answer: 13
Question 17
Show answer
Correct answer: 7
Question 18
Show answer
Correct answer: 7
Question 19
Show answer
Correct answer: 52
Question 20
Show answer
Correct answers
Question 21
Consider a binary max-heap implemented using list. Which of the following lists represents a binary max-heap?
[25, 12, 16, 13, 10, 8, 14]
[25, 14, 13, 16, 10, 8, 12]
[25, 14, 16, 13, 10, 8, 12]
[25, 14, 16, 13, 12, 8, 10]
Show answer
Correct answers
[25, 14, 16, 13, 10, 8, 12]
[25, 14, 16, 13, 12, 8, 10]
Question 22
Which of the following statement(s) is/are true about Huffman algorithm ?
Show answer
Correct answers
Question 23
Show answer
Correct answers
Question 24
Based on the above data, answer the given subquestions.
Show answer
Correct answer
Question 25
Based on the above data, answer the given subquestions.
What is the time complexity of the given algorithm ?
Show answer
Correct answer
