Quiz Space

January 2024 term · Programming in Python · BSCS1002

Python End Term: 28 April 2024, Set 2 (January 2024 term)

The IIT Madras BS Programming in Python (Python) End Term paper sat on 28 Apr 2024, in the January 2024 term, set 2: 22 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
22
Marks
54
Duration
180 min
MCQ
10
MSQ
3
Written
9

Updated

Official paper: IIT M FOUNDATION DIPLOMA AN EXAM QDF3 28 Apr 2024 · No negative marking.

Question 1

+1 markOne correct option

THIS IS QUESTION PAPER FOR THE SUBJECT "FOUNDATION LEVEL : SEMESTER II: 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

    Only snippet-1 is correct

  2. B

    Only snippet-2 is correct

  3. C

    Both snippets are correct

  4. D

    Both snippets are incorrect

Show answer

Correct answer

  • A

    Only snippet-1 is correct

Question 4

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

    6

  2. B

    1

  3. C

    2

  4. D

    7

Show answer

Correct answer

  • C

    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

  • A
    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

  • B
    Figure from the original question paper

Question 7

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

    The function returns the pair of 'Laptop' and 'Earphone' products with theminimum price difference, considering only products with the same brand.

  2. B

    The function returns the pair of 'Laptop' and 'Earphone' products with themaximum price difference, considering only products with the same brand.

  3. C

    The function returns the pair of 'Laptop' and 'Earphone' products with theminimum price difference, considering all available products without considering the brand.

  4. D

    The function returns the pair of 'Laptop' and 'Earphone' products with themaximum price difference, considering all available products without considering the brand.

Show answer

Correct answer

  • B

    The function returns the pair of 'Laptop' and 'Earphone' products with themaximum price difference, considering only products with the same brand.

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 marksOne or more correct options
Figure from the original question paper

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

Show answer

Correct answers

  • B

    Code-2 will throw an error in line-2

  • C

    Code-3 will throw an error in line-3

  • D

    Code-1 will run without any error

Question 10

+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
  • B
    Figure from the original question paper

Question 11

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

Select all that apply.

  1. A

    It is the number of odd positive integers less than or equal to 51 that aredivisible by 3.

  2. B

    It is the number of even positive integers less than or equal to 51 that aredivisible by 3.

  3. C

    It is the number of odd positive integers less than or equal to 51 that are notdivisible by 3.

  4. D

    The output of the above code is 17.

  5. E

    The output of the above code is 9.

Show answer

Correct answers

  • C

    It is the number of odd positive integers less than or equal to 51 that are notdivisible by 3.

  • D

    The output of the above code is 17.

Question 12

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

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

A written answer, not marked automatically.

Question 15

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

A written answer, not marked automatically.

Question 16

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

A written answer, not marked automatically.

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

+1.5 marksWritten answer

Based on the above data, answer the given subquestions.

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

A written answer, not marked automatically.

Question 19

+2 marksWritten answer

Study the following code and answer the given subquestions.

Study the following code and answer the given subquestions. The given subquestions are independent of each other. Think of each subquestion as a separate execution of the code snippet given above.

Study the following code and answer the given subquestions.
Figure from the original question paper
Show answer

A written answer, not marked automatically.

Question 20

+2 marksOne correct option

Study the following code and answer the given subquestions.

Study the following code and answer the given subquestions. The given subquestions are independent of each other. Think of each subquestion as a separate execution of the code snippet given above.

Study the following code and answer the given subquestions.
Figure from the original question paper
  1. A

    "-2"

  2. B

    -2

  3. C

    "5.4"

  4. D

    5.4

Show answer

Correct answer

  • C

    "5.4"

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.

Question 22

+1 markWritten answer

Study the following code and answer the given subquestions.

Study the following code and answer the given subquestions. The given subquestions are independent of each other. Think of each subquestion as a separate execution of the code snippet given above.

Study the following code and answer the given subquestions.
Show answer

A written answer, not marked automatically.