Question 1
Here is a function to return the count of odd numbers in the list. There is a logical error in this function.
Select the input list for which bad_count_odd produces incorrect output.
[5,31,71,41]
[15,7,3,6,8,34]
[11,3,15,31]
[5,4,13,30]
Here is a function to return the count of odd numbers in the list. There is a logical error in this function.
Select the input list for which bad_count_odd produces incorrect output.
[5,31,71,41]
[15,7,3,6,8,34]
[11,3,15,31]
[5,4,13,30]
Here is a function to return the count of even numbers in the list. There is a logical error in this function.
Select the input list for which bad_count_even produces incorrect output.
[56,4,70,40]
[6,8,34,13,5,9]
[6,11,4,30]
[6,4,2,30]
Match the correct asymptotic complexity for each function.
1-b, 2-c, 3-a, 4-d, 5-e
1-a, 2-d, 3-b, 4-c, 5-e
1-e, 2-c, 3-b, 4-a, 5-d
1-a, 2-c, 3-b, 4-d, 5-e
Sign in with Google — it is free — to see every question with its answer and explanation, practise it in learning mode, or take it as a timed mock test.
The IIT Madras BS Programming, Data Structures and Algorithms using Python (PDSA) End Term paper sat on 21 Dec 2025, in the September 2025 term: 50 questions for 200 marks in 180 minutes. The first 3 questions are below. Sign in with Google — it is free — to see the whole paper with its answers and explanations, in learning mode or as a timed mock test.
| Feature | PDSA End Term 21 Dec 2025 at a glance |
|---|---|
| Term | September 2025 term |
| Subject | Programming, Data Structures and Algorithms using Python |
| Course code | BSCS2002 |
| Questions | 50 |
| Marks | 200 |
| Duration | 180 min |
| MCQ | 32 |
| MSQ | 4 |
| Numerical | 14 |
| Official paper | Programming, Data Structures And Algorithms Using Python 18 Dec 25 |
| Negative marking | No negative marking. |
| Updated |