Question 1
Consider the following Python code. What will be the output?s = "programming" print(s[::-1].replace("g", "#"))
#nimmarrop#
#nimmar#orp
programmin#
gni#marropg
Consider the following Python code. What will be the output?s = "programming" print(s[::-1].replace("g", "#"))
#nimmarrop#
#nimmar#orp
programmin#
gni#marropg
Consider the following Python code. What will be the output?x, y, z = "", "python", 0 print((x or y) and (z or len(y)))
6
""
"python"
0
True
Consider the following python code. What will the value stored in x at the end of the program execution?x = 5 x = x + 2.0 x = str(x) + "3" x = x * 2 x = [x] x = x + [10]
['7.03', '7.03', 10]
['7.03', 10]
['7.037.03']
['7.037.03', 10]
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 Python Programming (Python (ES)) Quiz 1 paper sat on 26 Oct 2025, in the September 2025 term, set QED3: 14 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 | Python (ES) Quiz 1 26 Oct 2025 Set QED3 at a glance |
|---|---|
| Term | September 2025 term |
| Subject | Python Programming |
| Course code | CS1002 |
| Questions | 14 |
| Marks | 50 |
| Duration | 120 min |
| MCQ | 8 |
| MSQ | 2 |
| Numerical | 4 |
| Official paper | IIT M ES DIPLOMA AN EXAM QED4 26 Oct |
| Negative marking | No negative marking. |
| Updated |