Question 1
Only snippet-1 is correct
Only snippet-2 is correct
Both snippets are correct
Both snippets are wrong
The IIT Madras BS Python Programming (Python (ES)) Quiz 1 paper sat on 7 Jul 2024, in the May 2024 term, set QEF2: 10 questions for 30 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.
Only snippet-1 is correct
Only snippet-2 is correct
Both snippets are correct
Both snippets are wrong
Correct answer
Both snippets are correct
Only snippet-1 is correct
Only snippet-2 is correct
Both snippets are correct
Both snippets are wrong
Correct answer
Only snippet-1 is correct
Correct answer: 14
Correct answer: 5
Correct answer: 22
Correct answer: 11
What is the second line of the output? Enter an integer as your answer.
Correct answer: 2
What will be the output?
[10, 2, 3, 4, 5]
[1,10, 2, 3, 4, 5]
[1, 2, 3, 4, 5]
[10]
Correct answer
[10, 2, 3, 4, 5]
What is the value of a, the first input entered by the user, if it is given that the user entered a positive integer?
Correct answer: 5
What is the value of b, the second input entered by the user, if it is given that the user entered a negative integer?
Correct answer: -5