Quiz Space

May 2024 term · Python Programming · CS1002

Python Programming Quiz 1: 7 July 2024, Set QEF4 (May 2024 term)

The IIT Madras BS Python Programming (Python (ES)) Quiz 1 paper sat on 7 Jul 2024, in the May 2024 term, set QEF4: 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.

Questions
10
Marks
30
Duration
120 min
MCQ
3
Numerical
7

Updated

Official paper: 2024 July07: IIT M AN EXAM QEF4 · No negative marking.

Question 1

+3 marksOne correct option
  1. A

    Only snippet-1 is correct

  2. B

    Only snippet-2 is correct

  3. C

    Both snippets are correct

  4. D

    Both snippets are wrong

Show answer

Correct answer

  • C

    Both snippets are correct

Question 2

+3 marksOne correct option
  1. A

    Only snippet-1 is correct

  2. B

    Only snippet-2 is correct

  3. C

    Both snippets are correct

  4. D

    Both snippets are wrong

Show answer

Correct answer

  • A

    Only snippet-1 is correct

Question 3

+3 marksNumerical answer
Show answer

Correct answer: 14

Question 4

+3 marksNumerical answer
Show answer

Correct answer: 5

Question 5

+3 marksNumerical answer
Show answer

Correct answer: 22

Question 6

+3 marksNumerical answer
Show answer

Correct answer: 11

Question 7

+3 marksNumerical answer

What is the second line of the output? Enter an integer as your answer.

Show answer

Correct answer: 2

Question 8

+3 marksOne correct option

What will be the output?

  1. A

    [10, 2, 3, 4, 5]

  2. B

    [1,10, 2, 3, 4, 5]

  3. C

    [1, 2, 3, 4, 5]

  4. D

    [10]

Show answer

Correct answer

  • A

    [10, 2, 3, 4, 5]

Question 9

+3 marksNumerical answer

What is the value of a, the first input entered by the user, if it is given that the user entered a positive integer?

Show answer

Correct answer: 5

Question 10

+3 marksNumerical answer

What is the value of b, the second input entered by the user, if it is given that the user entered a negative integer?

Show answer

Correct answer: -5