Quiz Space

Programming in Python Quiz 1: 16 July 2023 (May 2023 term)

Question 1

+2 marksOne correct option

Consider the following code snippet:

For what values as input, after execution, the above code snippet does not produce any output but runs without any error?

  1. A

    x = 10 and y = 25

  2. B

    x = 6 and y = 20

  3. C

    x = 12 and y = 15

  4. D

    x = 15 and y = 16

Question 2

+2 marksOne correct option

What is the output of the following code?

  1. A

    15

  2. B

    14

  3. C

    11

  4. D

    12

Question 3

+2 marksOne correct option

Consider the following code snippet:

  1. A

    Years: 1, Weeks: 10, Days: 2

  2. B

    Years: 2, Weeks: 10, Days: 3

  3. C

    Years: 1, Weeks: 62, Days: 2

  4. D

    Years: 2, Weeks: 22, Days: 2

12 more questions in this paper

Sign in with Google — it is free — to see every question with its answer and explanation, practise it in learning mode, or take it as a timed mock test.

More on the Python Quiz 1 16 Jul 2023 paper

The IIT Madras BS Programming in Python (Python) Quiz 1 paper sat on 16 Jul 2023, in the May 2023 term: 15 questions for 50 marks in 120 minutes. The first 3 questions are below. Sign in with Google — it is free — to see the whole paper with its answers and explanations, in learning mode or as a timed mock test.

FeaturePython Quiz 1 16 Jul 2023 at a glance
TermMay 2023 term
SubjectProgramming in Python
Course codeBSCS1002
Questions15
Marks50
Duration120 min
MCQ11
MSQ3
Numerical1
Official paperIIT M FOUNDATION AN2 EXAM QPF2 16 JULY 2023
Negative markingNo negative marking.
Updated

Same Quiz 1, other subjects

More Python