PDSA Quiz 1: 16 October 2022 (September 2022 term)
The IIT Madras BS Programming, Data Structures and Algorithms using Python (PDSA) Quiz 1 paper sat on 16 Oct 2022, in the September 2022 term: 16 questions for 50 marks in 120 minutes. Every question is below with its answer. Take it as a timed mock test to be marked, or read it through first.
- 16
- 50
- 120 min
- 13
- 1
- 2
Show answer
Correct answer
Question 2
36
29
49
37
Show answer
Correct answer
49
Question 3
Show answer
Correct answer
Question 4
Show answer
Correct answer
Question 5
1 and 2
1 and 3
2 and 3
1, 2 and 3
Show answer
Correct answer
2 and 3
Question 6
Show answer
Correct answer
Question 7
1, 2 and 4
1, 2 and 3
2, 3 and 4
1, 2, 3 and 4
Show answer
Correct answer
1, 2 and 3
Question 8
23, 36, 72, 12, 54, 83
36, 72, 23, 12, 54, 83
36, 23, 72, 12, 83, 54
36, 23, 72, 12, 54, 83
Show answer
Correct answer
36, 23, 72, 12, 83, 54
Question 9
1-d, 2-a, 3-c, 4-b
1-d, 2-b, 3-c, 4-a
1-d, 2-a, 3-b, 4-c
1-c, 2-a, 3-d, 4-b
Show answer
Correct answer
1-d, 2-a, 3-c, 4-b
Question 10
Show answer
Correct answer
Question 11
6, 6, 6, 6, 6, 6, 1
4, 4, 4, 3, 3, 3, 2
5, 4, 3, 3, 2, 2, 1
7, 7, 6, 2, 1, 1, 2
Show answer
Correct answer
5, 4, 3, 3, 2, 2, 1
Question 12
Let G be an undirected connected graph and T be a breadth-first search tree for G, let x and y be nodes in T belonging to the levels i and j respectively, and let (x,y) be an edge of G. Then i and j differ by at most___.
0
1
2
3
Show answer
Correct answer
1
Question 13
Show answer
Correct answer
Question 14
Which of the following statement(s) is/are true about Breadth First Search (BFS) on an undirected graph?
BFS systematically computes reachability in graphs.
The Time complexity of BFS is O(mn) when Adjacency List is used and O(m²) when Adjacency Matrix is used, where m represents the number of vertices and n represents the number of edges.
BFS cannot be used to check for cycles in the graph.
Paths discovered by BFS are the shortest paths in terms of the number of edges from source to destination.
Show answer
Correct answers
BFS systematically computes reachability in graphs.
Paths discovered by BFS are the shortest paths in terms of the number of edges from source to destination.
Question 15
NOTE: Enter your answer to the nearest integer.
Show answer
Correct answer: 8
Question 16
A university offers an online learning program in which there are 12 courses in total. The program is divided into semesters of 6 months. Students can take any number of courses in one semester, but they can take a course only if they have finished taking its prerequisites.
There is no constraint on how many courses a student can take in a semester. The minimum number of semesters required to complete all 12 courses is ___.
NOTE: Enter your answer to the nearest integer.
Show answer
Correct answer: 4
