Quiz Space

Programming in Python · End Term · 10 May 2026 · January 2026 term · Set 3

Python End Term 10 May 2026 — Question 4

Question 4

+3 marksOne correct option

What does the following code compute?

What does the following code compute?
  1. A

    85

  2. B

    105

  3. C

    91

  4. D

    36

Show answer

Correct answer

  • C

    91

Question 4 of 20 in the IIT Madras BS Programming in Python (Python) End Term paper sat on 10 May 2026, in the January 2026 term (Programming In Python 06 May 26). It carries 3 marks.

More questions from this paper

  1. Q1Consider the following Python functions: Given that mystery(8) == 4, what should replace the missing line?
  2. Q2Consider the following code: What is the output?
  3. Q3Consider the following Python function. Which of the following inputs will produce the output 'b'?
  4. Q5Consider the snippets: Code-1 Code-2 Code-3 Which statement is correct?
  5. Q6What is the output of the following snippet of code?
  6. Q7What is the output?
  7. Q8is a list of tuples . Select all correct snippets that produce a list of names scoring strictly above 80, sorted by sco…
  8. Q9Consider the following snippet of code: Select all that apply. Note • If a value is passed to , it reads that many numb…
  9. Q10Consider the following Python code snippet: What is the output of the program?
  10. Q11What is printed?
  11. Q12Fill in the blank with the missing expression so that the following conditions hold:
  12. Q13What is the output?
  13. Q14What is the output? Note : The function divmod(a, b) gives two values: (quotient : x // 10 , remainder : x % 10) for ex…
  14. Q15What is printed by ?
  15. Q16What is printed as the output?
  16. Q17What is the value of ?
  17. Q18What is the value of ?
  18. Q19Based on the above data, answer the given subquestions.
  19. Q20Based on the above data, answer the given subquestions.