Quiz Space

January 2025 term · Python Programming · CS1002

Python (ES) End Term: 13 April 2025, Set QEF3 (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 QEF3: 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
7
Numerical
8
MSQ
4

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 converts all vowels to uppercase and consonants to lowercase while leaving digits unchanged.

  2. B

    It reverses the order of characters in the string while converting all letters to lowercase.

  3. C

    It removes all non-alphabetic characters and alternates uppercase and lowercase letters in the remaining string.

  4. D

    It alternates the case of alphabetical characters based on their position, starting with uppercase at index 0, leaving non-alphabetic characters unchanged.

Show answer

Correct answer

  • D

    It alternates the case of alphabetical characters based on their position, starting with uppercase at index 0, leaving non-alphabetic characters unchanged.

Question 2

+3 marksOne correct option
  1. A

    2

  2. B

    3

  3. C

    4

  4. D

    6

Show answer

Correct answer

  • C

    4

Question 3

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

Correct answer

  • B

Question 4

+3 marksOne correct option
  1. A

    8

  2. B

    4

  3. C

    12

  4. D

    3

Show answer

Correct answer

  • C

    12

Question 5

+3 marksOne correct option
  1. A

    Only A

  2. B

    Only B

  3. C

    Only C

  4. D

    A and C

Show answer

Correct answer

  • D

    A and C

Question 6

+3 marksOne correct option
  1. A

    Only Snippet-1 is correct

  2. B

    Only Snippet-2 is correct

  3. C

    Both Snippet-1 and Snippet-2 are correct

  4. D

    Both Snippet-1 and Snippet-2 are incorrect

Show answer

Correct answer

  • D

    Both Snippet-1 and Snippet-2 are incorrect

Question 7

+3 marksNumerical answer
Show answer

Correct answer: 46

Question 8

+3 marksNumerical answer
Show answer

Correct answer: 60

Question 9

+3 marksNumerical answer
Show answer

Correct answer: 6

Question 10

+3 marksNumerical answer
Show answer

Correct answer: 80

Question 11

+4 marksNumerical answer
Show answer

Correct answer: 4

Question 12

+3 marksOne or more correct options

Select all that apply.

  1. A

    "taco cat"

  2. B

    "civic room"

  3. C

    "racecar"

  4. D

    "level up"

Show answer

Correct answers

  • A

    "taco cat"

  • C

    "racecar"

Question 13

+3 marksOne or more correct options

Select all that apply.

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

Correct answers

  • B
  • C
  • D

Question 14

+3 marksOne or more correct options

Select all that apply.

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

Correct answers

  • B
  • C
  • D

Question 15

+1.5 marksOne or more correct options

Based on the below data answer the given subquestions.

Which of the following statements about method overriding in PrimeProduct is true?

Select all that apply.

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

Correct answers

  • A
  • B
  • D

Question 16

+1.5 marksOne correct option

Based on the below data answer the given subquestions.

  1. A

    1

  2. B

    2

  3. C

    3

  4. D

    Cannot be determined

Show answer

Correct answer

  • B

    2

Question 17

+1 markNumerical answer

Based on the below code answer the given subquestions.

Show answer

Correct answer: 10

Question 18

+1.5 marksNumerical answer

Based on the below code answer the given subquestions.

Show answer

Correct answer: 5

Question 19

+1.5 marksNumerical answer

Based on the below code answer the given subquestions.

What will be the value passed to the function in the call before the base case, if the function is called with the input 32456 ?

Show answer

Correct answer: 3