Question 1
Consider the following code snippet:
For what values as input the output generated by the above code snippet does not print A.
x = 10 and y = 25
x = 6 and y = 20
x = 12 and y = 15
x = 15 and y = 16
Consider the following code snippet:
For what values as input the output generated by the above code snippet does not print A.
x = 10 and y = 25
x = 6 and y = 20
x = 12 and y = 15
x = 15 and y = 16
Which of the following code snippets print the first 100 powers of 3, one on each line. The
line should have the value of
. The output has 100 lines in total. The first five lines look like this:




What will be the output of the following code snippet?




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 10 May 2026, in the January 2026 term (T1 2026), set 4: 13 questions for 50 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 10 May 2026 Set 4 at a glance |
|---|---|
| Term | January 2026 term (T1 2026) |
| Subject | Programming in Python |
| Course code | BSCS1002 |
| Questions | 13 |
| Marks | 50 |
| Duration | 180 min |
| MCQ | 6 |
| MSQ | 3 |
| Numerical | 4 |
| Official paper | Programming In Python 06 May 26 |
| Negative marking | No negative marking. |
| Updated |