Question 1
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?
x = 10 and y = 25
x = 6 and y = 20
x = 12 and y = 15
x = 15 and y = 16
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?
x = 10 and y = 25
x = 6 and y = 20
x = 12 and y = 15
x = 15 and y = 16
What is the output of the following code?
15
14
11
12
Consider the following code snippet:
Years: 1, Weeks: 10, Days: 2
Years: 2, Weeks: 10, Days: 3
Years: 1, Weeks: 62, Days: 2
Years: 2, Weeks: 22, Days: 2
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.
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.
| Feature | Python Quiz 1 16 Jul 2023 at a glance |
|---|---|
| Term | May 2023 term |
| Subject | Programming in Python |
| Course code | BSCS1002 |
| Questions | 15 |
| Marks | 50 |
| Duration | 120 min |
| MCQ | 11 |
| MSQ | 3 |
| Numerical | 1 |
| Official paper | IIT M FOUNDATION AN2 EXAM QPF2 16 JULY 2023 |
| Negative marking | No negative marking. |
| Updated |