uiz Space

January 2025 term · Programming in Python · BSCS1002

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.

Questions
17
Marks
45
Duration
120 min
MCQ
7
MSQ
4
Numerical
6

Updated

Official paper: IIT M DIPLOMA AN EXAM QDD2 23 Feb 2025 · No negative marking.

Question 1

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

Correct answer

  • A

Question 2

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

Correct answer

  • C

Question 3

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

Correct answer

  • A

Question 4

+4 marksOne or more correct options

Select all that apply.

  1. A

    If line-6 is executed, then line-8 will not be executed.

  2. B

    If line-11 is executed, then lines 14 to 17 will not be executed.

  3. C

    If line-8 is executed, the interpreter will directly jump to line-19 without even reading the remaining lines.

  4. D

    The interpreter evaluates at least three if conditions for any combinations of inputs.

Show answer

Correct answers

  • A

    If line-6 is executed, then line-8 will not be executed.

  • B

    If line-11 is executed, then lines 14 to 17 will not be executed.

  • D

    The interpreter evaluates at least three if conditions for any combinations of inputs.

Question 5

+4 marksOne or more correct options

Select all that apply.

  1. A

    tranquil

  2. B

    shoWCASE

  3. C

    caLMness

  4. D

    peaceFUL

Show answer

Correct answers

  • A

    tranquil

  • C

    caLMness

  • D

    peaceFUL

Question 6

+3 marksNumerical answer
Show answer

Correct answer: 7

Question 7

+3 marksNumerical answer
Show answer

Correct answer: 65

Question 8

+3 marksNumerical answer
Show answer

Correct answer: 18

Question 9

+3 marksNumerical answer
Show answer

Correct answer: 24

Question 10

+2 marksOne or more correct options

Based on the above data, answer the given subquestions.

Select all that apply.

  1. A

    A = True, B = False, C = True

  2. B

    A = False, B = True, C = False

  3. C

    A = True, B = True, C = False

  4. D

    A = False, B = False, C = False

Show answer

Correct answers

  • B

    A = False, B = True, C = False

  • D

    A = False, B = False, C = False

Question 11

+2 marksOne or more correct options

Based on the above data, answer the given subquestions.

Select all that apply.

  1. A

    A = False, B = False, C = True

  2. B

    A = True, B = False, C = False

  3. C

    A = True, B = True, C = True

  4. D

    A = False, B = False, C = False

Show answer

Correct answers

  • A

    A = False, B = False, C = True

  • C

    A = True, B = True, C = True

Question 12

+2 marksNumerical answer

Based on the above data, answer the given subquestions.

Show answer

Correct answer: 4

Question 13

+2 marksNumerical answer

Based on the above data, answer the given subquestions.

Show answer

Correct answer: -12

Question 14

+3 marksOne correct option

What will be the first line of output?

  1. A

    ['A', 'e', 'i', 'o', 'u']

  2. B

    ['a','A', 'e', 'i', 'o']

  3. C

    ['X', 'a', 'p', 'p', 'y']

  4. D

    ['A']

Show answer

Correct answer

  • A

    ['A', 'e', 'i', 'o', 'u']

Question 15

+3 marksOne correct option

What will be the second line of output?

  1. A

    ['A', 'e', 'i', 'o', 'u']

  2. B

    ['A','h', 'a', 'p', 'p','y']

  3. C

    ['X', 'a', 'p', 'p', 'y' ]

  4. D

    ['X', 'A', 'p', 'p', 'y']

Show answer

Correct answer

  • D

    ['X', 'A', 'p', 'p', 'y']

Question 16

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

Correct answer

  • A

Question 17

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

Correct answer

  • B