uiz Space

September 2024 term · Programming in Python · BSCS1002

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.

Questions
17
Marks
50
Duration
120 min
MCQ
7
MSQ
2
Numerical
8

Updated

Official paper: IIT M DIPLOMA AN EXAM QDD2 27 Oct 2024 · No negative marking.

Question 1

+3 marksOne correct option
  1. A
  2. B
  3. C
  4. D
Show answer

Correct answer

  • C

Question 2

+3 marksOne correct option
  1. A
  2. B
  3. C
  4. D
  5. E
Show answer

Correct answer

  • D

Question 3

+3 marksOne correct option
  1. A

    Only snippet-1 and snippet-2 is correct

  2. B

    Only snippet-2 and snippet-4 is correct

  3. C

    All snippets are wrong

  4. D

    Only snippet-1, snippet-3 and snippet-4 is correct

Show answer

Correct answer

  • D

    Only snippet-1, snippet-3 and snippet-4 is correct

Question 4

+3 marksOne or more correct options

Select all that apply.

  1. A
  2. B
  3. C
  4. D
Show answer

Correct answers

  • C
  • D

Question 5

+3 marksOne or more correct options

Select all that apply.

  1. A
  2. B
  3. C
  4. D
  5. E
Show answer

Correct answers

  • A
  • C

Question 6

+3 marksNumerical answer
Show answer

Correct answer: 32

Question 7

+3 marksNumerical answer
Show answer

Correct answer: 2

Question 8

+3 marksNumerical answer
Show answer

Correct answer: 22

Question 9

+3 marksNumerical answer
Show answer

Correct answer: 4

Question 10

+3 marksOne correct option
  1. A
  2. B
  3. C
  4. D
Show answer

Correct answer

  • A

Question 11

+3 marksNumerical answer
Show answer

Correct answer: 14

Question 12

+3 marksOne correct option

Consider the following code snippets and answer the given subquestions.

What is the first line of output?

  1. A

    [10, 16, 4, 9, 14, 11]

  2. B

    [10, 17, 8, 9, 15, 15]

  3. C

    [10, 17, 8, 8, 8, 17]

  4. D

    [10, 16, 4, 8, 12, 18]

Show answer

Correct answer

  • B

    [10, 17, 8, 9, 15, 15]

Question 13

+3 marksNumerical answer

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

+3 marksOne correct option

Based on the above data, answer the given subquestions.

What is the first line of output ?

  1. A
  2. B
  3. C
  4. D
Show answer

Correct answer

  • B

Question 15

+3 marksNumerical answer

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

+3 marksOne correct option

Consider the following code snippet and answer the given subquestions.

What is the first line of output ?

  1. A
  2. B
  3. C
  4. D
Show answer

Correct answer

  • C

Question 17

+2 marksNumerical answer

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