Quiz Space

January 2025 term · Programming in Python · BSCS1002

Python End Term: 13 April 2025, Set 2 (January 2025 term)

The IIT Madras BS Programming in Python (Python) End Term paper sat on 13 Apr 2025, in the January 2025 term, set 2: 23 questions for 54 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
23
Marks
54
Duration
180 min
MCQ
10
Written
8
MSQ
5

Updated

Official paper: IIT M DIPLOMA FN EXAM QDD2 13 Apr 2025 · No negative marking.

Question 1

+1 markOne correct option

THIS IS QUESTION PAPER FOR THE SUBJECT "FOUNDATION LEVEL : INTRODUCTION TO PYTHON (COMPUTER BASED EXAM)" ARE YOU SURE YOU HAVE TO WRITE EXAM FOR THIS SUBJECT? CROSS CHECK YOUR HALL TICKET TO CONFIRM THE SUBJECTS TO BE WRITTEN. (IF IT IS NOT THE CORRECT SUBJECT, PLS CHECK THE SECTION AT THE TOP FOR THE SUBJECTS REGISTERED BY YOU)

  1. A

    YES

  2. B

    NO

Show answer

Correct answer

  • A

    YES

Question 2

+1 markOne correct option
Figure from the original question paper
  1. A

    Useful Data has been mentioned above.

  2. B

    This data attachment is just for a reference & not for an evaluation.

Show answer

Correct answer

  • A

    Useful Data has been mentioned above.

Question 3

+3 marksOne correct option
Figure from the original question paper
  1. A

    It reverses the entire sub-list from left to right, regardless of whether theelements are odd or even.

  2. B

    It reverses only the odd elements in the range [left, right], leaving evenelements in their original positions.

  3. C

    It moves all even elements to the left and all odd elements to the right (apartition), but does not change the relative order of the odd elements themselves.

  4. D

    It sorts the sub-list from left to right in ascending order, ignoring whetherelements are odd or even.

Show answer

Correct answer

  • B

    It reverses only the odd elements in the range [left, right], leaving evenelements in their original positions.

Question 4

+3 marksOne correct option
Figure from the original question paper
  1. A

    2

  2. B

    3

  3. C

    5

  4. D

    It will give an error

Show answer

Correct answer

  • A

    2

Question 5

+3 marksOne correct option
Figure from the original question paper
  1. A
    Figure from the original question paper
  2. B
    Figure from the original question paper
  3. C
    Figure from the original question paper
  4. D
    Figure from the original question paper
Show answer

Correct answer

  • C
    Figure from the original question paper

Question 6

+3 marksOne correct option
Figure from the original question paper
  1. A
    Figure from the original question paper
  2. B
    Figure from the original question paper
  3. C
    Figure from the original question paper
  4. D
    Figure from the original question paper
Show answer

Correct answer

  • C
    Figure from the original question paper

Question 7

+3 marksOne correct option
Figure from the original question paper
  1. A

    Only X

  2. B

    Only Y

  3. C

    Only Z

  4. D

    X and Z

Show answer

Correct answer

  • B

    Only Y

Question 8

+3 marksOne correct option
Figure from the original question paper
  1. A
    Figure from the original question paper
  2. B
    Figure from the original question paper
  3. C
    Figure from the original question paper
  4. D
    Figure from the original question paper
Show answer

Correct answer

  • A
    Figure from the original question paper

Question 9

+3 marksWritten answer
Figure from the original question paper
Show answer

A written answer, not marked automatically.

Question 10

+3 marksWritten answer
Figure from the original question paper
Show answer

A written answer, not marked automatically.

Question 11

+3 marksWritten answer
Figure from the original question paper
Show answer

A written answer, not marked automatically.

Question 12

+3 marksWritten answer
Figure from the original question paper
Show answer

A written answer, not marked automatically.

Question 13

+4 marksWritten answer
Figure from the original question paper
Show answer

A written answer, not marked automatically.

Question 14

+3 marksOne or more correct options
Figure from the original question paper

Select all that apply.

  1. A

    "debitcard", "badcredit"

  2. B

    "admirer", "married"

  3. C

    "schoolmaster", "theclassroom"

  4. D

    "aabbcc", "abcabc"

Show answer

Correct answers

  • A

    "debitcard", "badcredit"

  • B

    "admirer", "married"

  • D

    "aabbcc", "abcabc"

Question 15

+3 marksOne or more correct options
Figure from the original question paper

Select all that apply.

  1. A
    Figure from the original question paper
  2. B
    Figure from the original question paper
  3. C
    Figure from the original question paper
  4. D
    Figure from the original question paper
Show answer

Correct answers

  • A
    Figure from the original question paper
  • C
    Figure from the original question paper

Question 16

+3 marksOne or more correct options
Figure from the original question paper

Select all that apply.

  1. A
    Figure from the original question paper
  2. B
    Figure from the original question paper
  3. C
    Figure from the original question paper
  4. D
    Figure from the original question paper
Show answer

Correct answers

  • A
    Figure from the original question paper
  • D
    Figure from the original question paper

Question 17

+1.5 marksOne correct option

Based on the above data, answer the given subquestions.

Based on the above data, answer the given subquestions.

What will be the output of the given code?

  1. A

    Employee Name: Alice Salary: 75000

  2. B

    Employee Name: Alice Salary: 80000 Manager of Department: HR

  3. C

    Employee Name: Alice Salary: 80000

  4. D

    Manager of Department: HR

Show answer

Correct answer

  • B

    Employee Name: Alice Salary: 80000 Manager of Department: HR

Question 18

+1.5 marksWritten answer

Based on the above data, answer the given subquestions.

Based on the above data, answer the given subquestions.

If the below main code is executed after the class definition, what will be the output?

If the below main code is executed after the class definition, what will be the output?

If the below main code is executed after the class definition, what will be the output?
Show answer

A written answer, not marked automatically.

Question 19

+1.5 marksOne correct option
Figure from the original question paper
Figure from the original question paper
  1. A
    Figure from the original question paper
  2. B
    Figure from the original question paper
  3. C
    Figure from the original question paper
  4. D
    Figure from the original question paper
Show answer

Correct answer

  • C
    Figure from the original question paper

Question 20

+1.5 marksOne or more correct options
Figure from the original question paper
Figure from the original question paper

Select all that apply.

  1. A
    Figure from the original question paper
  2. B
    Figure from the original question paper
  3. C
    Figure from the original question paper
  4. D
    Figure from the original question paper
Show answer

Correct answers

  • A
    Figure from the original question paper
  • B
    Figure from the original question paper

Question 21

+1 markOne or more correct options
Figure from the original question paper
Figure from the original question paper

Select all that apply.

  1. A
    Figure from the original question paper
  2. B
    Figure from the original question paper
  3. C
    Figure from the original question paper
  4. D
    Figure from the original question paper
Show answer

Correct answers

  • A
    Figure from the original question paper
  • B
    Figure from the original question paper
  • D
    Figure from the original question paper

Question 22

+1 markWritten answer

Based on the above data, answer the given subquestions.

Based on the above data, answer the given subquestions.
Show answer

A written answer, not marked automatically.

Question 23

+1 markWritten answer
Figure from the original question paper
Show answer

A written answer, not marked automatically.