uiz Space

January 2025 term · Programming in Python · BSCS1002

Programming in Python Diploma Entry Qualifier: 13 April 2025 (January 2025 term)

The IIT Madras BS Programming in Python (Python) Diploma Entry Qualifier paper sat on 13 Apr 2025, in the January 2025 term: 13 questions for 50 marks in 180 minutes. Every question is below with its answer. Take it as a timed mock test to be marked, or read it through first.

Questions
13
Marks
50
Duration
180 min
MCQ
6
MSQ
3
Numerical
4

Updated

Official paper: IIT M DAD DS QUALIFIER AN EXAM QDS1 13 Apr 2025 · No negative marking.

Question 1

+4 marksOne correct option
  1. A

    123

  2. B

    6

  3. C

    321

  4. D

    1,2,3

Show answer

Correct answer

  • A

    123

Question 2

+4 marksOne correct option
  1. A

    If c = 5, then the output generated is "D"

  2. B

    If c = 10, then the output generated is "E"

  3. C

    If c >= 8, then the output is always "D"

  4. D

    If c < 7, then the output generated is always "D"

Show answer

Correct answer

  • D

    If c < 7, then the output generated is always "D"

Question 3

+5 marksOne correct option
  1. A

    {1: 0, 27: 3, 243: 5, 3: 1, 2187: 7}

  2. B

    {0: 1, 3: 27, 5: 243, 1: 3, 7: 2187}

  3. C

    [(0, 1), (3, 27), (5, 243), (1, 3), (7, 2187)]

  4. D

    [(1, 0), (27, 3), (243, 5), (3, 1), (2187, 7)]

Show answer

Correct answer

  • A

    {1: 0, 27: 3, 243: 5, 3: 1, 2187: 7}

Question 4

+5 marksOne correct option
  1. A

    1 2 1 3 2 1 4 3 2 1 5 4 3 2 1

  2. B

    5 4 3 2 1 4 3 2 1 3 2 1 2 1 1

  3. C

    1 2 3 4 5 1 2 3 4 1 2 4 1 2 1

  4. D

    1 1 2 1 2 3 1 2 3 4

  5. E

    5 4 3 2 1 4 3 2 1 3 2 1 2 1

Show answer

Correct answer

  • B

    5 4 3 2 1 4 3 2 1 3 2 1 2 1 1

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

  • C
  • D

Question 6

+3 marksOne or more correct options

Select all that apply.

  1. A

    Code-1 will throw an error in line-2

  2. B

    Code-2 will throw an error in line-2

  3. C

    Code-3 will throw an error in line-3

  4. D

    Code-1 will run without any error

  5. E

    Code-2 will run without any error

  6. F

    Code-3 will run without any error

Show answer

Correct answers

  • A

    Code-1 will throw an error in line-2

  • B

    Code-2 will throw an error in line-2

  • F

    Code-3 will run without any error

Question 7

+3 marksOne or more correct options

Select all that apply.

  1. A

    abcdefgh adgh

  2. B

    perfect prefects

  3. C

    grow rowrowrow

  4. D

    great goodandgreat

Show answer

Correct answers

  • A

    abcdefgh adgh

  • C

    grow rowrowrow

Question 8

+4 marksNumerical answer
Show answer

Correct answer: 25

Question 9

+4 marksNumerical answer
Show answer

Correct answer: 3

Question 10

+4 marksNumerical answer
Show answer

Correct answer: 20

Question 11

+4 marksNumerical answer
Show answer

Correct answer: 210

Question 12

+3 marksOne correct option

Consider the following snippet of code and answer all the given subquestions :

What is the first line of the output?

  1. A

    10

  2. B

    14

  3. C

    6

  4. D

    18

Show answer

Correct answer

  • B

    14

Question 13

+4 marksOne correct option

Consider the following snippet of code and answer all the given subquestions :

What is the second line of the output?

  1. A

    6

  2. B

    162

  3. C

    36

  4. D

    48

Show answer

Correct answer

  • B

    162