
Programming in Python Quiz 1: 23 February 2025 (January 2025 term)
The IIT Madras BS Programming in Python (Python) Quiz 1 paper sat on 23 Feb 2025, in the January 2025 term: 17 questions for 45 marks in 120 minutes. Every question is below with its answer. Take it as a timed mock test to be marked, or read it through first.
- 17
- 45
- 120 min
- 7
- 4
- 6
Show answer
Correct answer
Question 2
Show answer
Correct answer
Question 3
Show answer
Correct answer
Question 4
If line-6 is executed, then line-8 will not be executed.
If line-11 is executed, then lines 14 to 17 will not be executed.
If line-8 is executed, the interpreter will directly jump to line-19 without even reading the remaining lines.
The interpreter evaluates at least three if conditions for any combinations of inputs.
Show answer
Correct answers
If line-6 is executed, then line-8 will not be executed.
If line-11 is executed, then lines 14 to 17 will not be executed.
The interpreter evaluates at least three if conditions for any combinations of inputs.
Question 5
tranquil
shoWCASE
caLMness
peaceFUL
Show answer
Correct answers
tranquil
caLMness
peaceFUL
Question 6
Show answer
Correct answer: 7
Question 7
Show answer
Correct answer: 65
Question 8
Show answer
Correct answer: 18
Question 9
Show answer
Correct answer: 24
Question 10
Based on the above data, answer the given subquestions.
A = True, B = False, C = True
A = False, B = True, C = False
A = True, B = True, C = False
A = False, B = False, C = False
Show answer
Correct answers
A = False, B = True, C = False
A = False, B = False, C = False
Question 11
Based on the above data, answer the given subquestions.
A = False, B = False, C = True
A = True, B = False, C = False
A = True, B = True, C = True
A = False, B = False, C = False
Show answer
Correct answers
A = False, B = False, C = True
A = True, B = True, C = True
Question 12
Based on the above data, answer the given subquestions.
Show answer
Correct answer: 4
Question 13
Based on the above data, answer the given subquestions.
Show answer
Correct answer: -12
Question 14
What will be the first line of output?
['A', 'e', 'i', 'o', 'u']
['a','A', 'e', 'i', 'o']
['X', 'a', 'p', 'p', 'y']
['A']
Show answer
Correct answer
['A', 'e', 'i', 'o', 'u']
Question 15
What will be the second line of output?
['A', 'e', 'i', 'o', 'u']
['A','h', 'a', 'p', 'p','y']
['X', 'a', 'p', 'p', 'y' ]
['X', 'A', 'p', 'p', 'y']
Show answer
Correct answer
['X', 'A', 'p', 'p', 'y']
Question 16
Show answer
Correct answer
Question 17
Show answer
Correct answer