Question 1
Consider the following code snippet.
What will be the output?
1 1
2 2
1 2
Error
Consider the following code snippet.
What will be the output?
1 1
2 2
1 2
Error
Hari runs a yoga class and grades students into levels based on a flexibility score out of 100.
Which of the following snippets correctly compute and print the level after accepting the score as input? Assume the input entered will always be an integer in the range [0,100]. Snippet-1
Snippet-2
Snippet-3
Snippet-1 and Snippet-2 are correct, Snippet-3 is incorrect.
Only Snippet-1 is correct.
Snippet-1 and Snippet-3 are correct, Snippet-2 is incorrect.
All three snippets are correct.
Consider the following code.
What is the output?
5 B KeyError
4 C E
2 C E
2 A D
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 in Python (Python) End Term paper sat on 13 Sept 2026, in the May 2026 term, set 1: 17 questions for 48 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 | Python End Term 13 Sept 2026 Set 1 at a glance |
|---|---|
| Term | May 2026 term |
| Subject | Programming in Python |
| Course code | BSCS1002 |
| Questions | 17 |
| Marks | 48 |
| Duration | 180 min |
| MCQ | 10 |
| MSQ | 2 |
| Numerical | 5 |
| Official paper | Programming in Python 13 Sep 26 (Session 2) |
| Negative marking | No negative marking. |
| Updated |