Question 1
What is , given the definition of above?
What is , given the definition of above?
Consider the following implementation for selection sort:
Suppose a list is used as an input parameter to the above selection sort. How many times will the condition evaluate to true?
Suppose each node of the linked list is an object of class Node. Variable head points to the first node of the linked list, and the list initially contains the following elements: 8 → 3 → 6 → 1 → 9 → 4 → 7 Consider the following function:
What will be the output of the given function if it is called on the head node of the given linked list?
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) Quiz 1 paper sat on 15 Mar 2026, in the January 2026 term: 17 questions for 50 marks in 120 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 Quiz 1 15 Mar 2026 at a glance |
|---|---|
| Term | January 2026 term |
| Subject | Programming, Data Structures and Algorithms using Python |
| Course code | BSCS2002 |
| Questions | 17 |
| Marks | 50 |
| Duration | 120 min |
| Written | 5 |
| MSQ | 6 |
| MCQ | 6 |
| Official paper | Programming, Data Structures And Algorithms Using Python 15 Mar 26 |
| Negative marking | No negative marking. |
| Updated |