Quiz Space

May 2023 term · Programming in Python · BSCS1002

Python End Term: 3 September 2023, Set 2 (May 2023 term)

The IIT Madras BS Programming in Python (Python) End Term paper sat on 3 Sept 2023, in the May 2023 term, set 2: 21 questions for 53 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
21
Marks
53
Duration
180 min
MCQ
14
MSQ
2
Written
5

Updated

Official paper: IIT M DIPLOMA ET1 EXAM QPD1 S1 03 Sep · 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

+2 marksOne correct option

Consider the following functions:

Consider the following functions:

Consider the following functions:
  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
  5. E
    Figure from the original question paper
Show answer

Correct answer

  • C
    Figure from the original question paper

Question 3

+2 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

  • B
    Figure from the original question paper

Question 4

+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 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

    The return statement in line 3 which is inside the if-block

  2. B

    The return statement in line 4 which is outside the if-block

  3. C

    Both the return statements are executed

  4. D

    Neither return statement is executed

Show answer

Correct answer

  • A

    The return statement in line 3 which is inside the if-block

Question 7

+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

  • D
    Figure from the original question paper

Question 8

+4 marksOne correct option

Which of the following code blocks prints the product of the digits for the given number?

  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

+4 marksOne or more correct options

Select all code snippets that run without any error.

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 10

+4 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
  5. E
    Figure from the original question paper
Show answer

Correct answers

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

Question 11

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

A written answer, not marked automatically.

Question 12

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

A written answer, not marked automatically.

Question 13

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

A written answer, not marked automatically.

Question 14

+1 markOne 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

  • B
    Figure from the original question paper

Question 15

+1 markOne 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

  • D
    Figure from the original question paper

Question 16

+1 markOne 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

  • A
    Figure from the original question paper

Question 17

+1 markOne 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

  • A
    Figure from the original question paper

Question 18

+5 marksOne correct option

Based on the above data, answer the given subquestions.

Based on the above data, answer the given subquestions.
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
  5. E
    Figure from the original question paper
Show answer

Correct answer

  • E
    Figure from the original question paper

Question 19

+4 marksOne correct option

Based on the above data, answer the given subquestions.

Based on the above data, answer the given subquestions.
Figure from the original question paper
  1. A

    Number of fiction books in the library

  2. B

    Number of non-fiction books in the library

  3. C

    Number of books in the library

  4. D

    None of these

Show answer

Correct answer

  • A

    Number of fiction books in the library

Question 20

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

A written answer, not marked automatically.

Question 21

+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.