
Programming in Python Quiz 1: 27 October 2024 (September 2024 term)
The IIT Madras BS Programming in Python (Python) Quiz 1 paper sat on 27 Oct 2024, in the September 2024 term: 17 questions for 50 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
- 50
- 120 min
- 7
- 2
- 8
Show answer
Correct answer
Question 2
Show answer
Correct answer
Question 3
Only snippet-1 and snippet-2 is correct
Only snippet-2 and snippet-4 is correct
All snippets are wrong
Only snippet-1, snippet-3 and snippet-4 is correct
Show answer
Correct answer
Only snippet-1, snippet-3 and snippet-4 is correct
Question 4
Show answer
Correct answers
Question 5
Show answer
Correct answers
Question 6
Show answer
Correct answer: 32
Question 7
Show answer
Correct answer: 2
Question 8
Show answer
Correct answer: 22
Question 9
Show answer
Correct answer: 4
Question 10
Show answer
Correct answer
Question 11
Show answer
Correct answer: 14
Question 12
Consider the following code snippets and answer the given subquestions.
What is the first line of output?
[10, 16, 4, 9, 14, 11]
[10, 17, 8, 9, 15, 15]
[10, 17, 8, 8, 8, 17]
[10, 16, 4, 8, 12, 18]
Show answer
Correct answer
[10, 17, 8, 9, 15, 15]
Question 13
Consider the following code snippets and answer the given subquestions.
What is the second line of the output? Enter an integer as your answer.
Show answer
Correct answer: 74
Question 14
Based on the above data, answer the given subquestions.
What is the first line of output ?
Show answer
Correct answer
Question 15
Based on the above data, answer the given subquestions.
What is the second line of the output? Enter an integer as your answer .
Show answer
Correct answer: 11
Question 16
Consider the following code snippet and answer the given subquestions.
What is the first line of output ?
Show answer
Correct answer
Question 17
Consider the following code snippet and answer the given subquestions.
What is the second line of the output ? Enter an integer as your answer.
Show answer
Correct answer: 5