Quiz Space

Programming in Python · Quiz 1 · 19 Jul 2026 · May 2026 term

Question 1: NAT → integer For all NAT questions in this exam, the ans…

Question 1

+1 markOne correct option

NAT → integer For all NAT questions in this exam, the answer will always be an integer and not a float value.

  1. A

    Instructions has been mentioned above.

  2. B

    This Instructions is just for a reference & not for an evaluation.

Show answer

Correct answer

  • A

    Instructions has been mentioned above.

Question 1 of 17 in the IIT Madras BS Programming in Python (Python) Quiz 1 paper sat on 19 Jul 2026, in the May 2026 term (Programming in Python 16 Jul 26). It carries 1 mark.

More questions from this paper

  1. Q2What is the output of the following code?
  2. Q3What is the output of the following code?
  3. Q4Which of the following statements is TRUE regarding the code below?
  4. Q5Consider the following code. What will be printed?
  5. Q6Consider the following code. Select all expressions that evaluate to .
  6. Q7Consider the following Python code. Which of the following statements will run without giving an error?
  7. Q8What is the output of the following code?
  8. Q9What is the output of the following code?
  9. Q10What is the output of the following code?
  10. Q11What is the output of the following code?
  11. Q12What is the value of ?
  12. Q13Suppose the following condition inside the transform() function: is replaced with For the given input which of the foll…
  13. Q14What is the value of ?
  14. Q15How many times is the condition evaluated?
  15. Q16Note: isinstance(val, datatype) returns True if val is of object of type 'datatype' and False, otherwise. Based on the …
  16. Q17Based on the above data, answer the given subquestions.