Quiz Space

January 2025 term · Python Programming · CS1002

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

The IIT Madras BS Python Programming (Python (ES)) End Term paper sat on 13 Apr 2025, in the January 2025 term, set QEF1: 19 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
19
Marks
50
Duration
180 min
MCQ
8
Numerical
6
MSQ
5

Updated

Official paper: IIT M ES FOUNDATION AN EXAM QEF3 13 Apr 2025 · No negative marking.

Question 1

+3 marksOne correct option
  1. A

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

  2. B

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

  3. C

    It moves all even elements to the left and all odd elements to the right (a partition), 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 whether elements are odd or even.

Show answer

Correct answer

  • B

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

Question 2

+3 marksOne correct option
  1. A

    2

  2. B

    3

  3. C

    5

  4. D

    It will give an error

Show answer

Correct answer

  • A

    2

Question 3

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

Correct answer

  • C

Question 4

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

Correct answer

  • C

Question 5

+3 marksOne correct option
  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 6

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

Correct answer

  • A

Question 7

+3 marksNumerical answer
Show answer

Correct answer: 32

Question 8

+3 marksNumerical answer
Show answer

Correct answer: 10

Question 9

+3 marksNumerical answer
Show answer

Correct answer: 5

Question 10

+3 marksNumerical answer
Show answer

Correct answer: 20

Question 11

+4 marksNumerical answer
Show answer

Correct answer: 39

Question 12

+3 marksOne or more correct options

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 13

+3 marksOne or more correct options

Select all that apply.

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

Correct answers

  • A
  • C

Question 14

+3 marksOne or more correct options

Select all that apply.

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

Correct answers

  • A
  • D

Question 15

+1.5 marksOne correct option

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 16

+1.5 marksNumerical answer

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?

Show answer

Correct answer: 3

Question 17

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

Correct answer

  • C

Question 18

+1.5 marksOne or more correct options

Select all that apply.

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

Correct answers

  • A
  • B

Question 19

+1 markOne or more correct options

Select all that apply.

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

Correct answers

  • A
  • B
  • D