Quiz Space

Programming in Python · End Term · 13 Sept 2026 · May 2026 term · Set 1

Python End Term 13 Sept 2026 — Question 7

Question 7

+3 marksOne or more correct options

Madhava maintains a ledger file for the shop.

Select all that apply.

  1. A
  2. B
  3. C
  4. D

    There are 4 lines in the output.

  5. E

    The output contains empty lines.

Show answer

Correct answers

  • A
  • B
  • C
  • D

    There are 4 lines in the output.

Question 7 of 17 in the IIT Madras BS Programming in Python (Python) End Term paper sat on 13 Sept 2026, in the May 2026 term (Programming in Python 13 Sep 26 (Session 2)). It carries 3 marks.

More questions from this paper

  1. Q1Consider the following code snippet. What will be the output?
  2. Q2Hari runs a yoga class and grades students into levels based on a flexibility score out of 100. Which of the following …
  3. Q3Consider the following code. What is the output?
  4. Q4Govinda runs a fruit stall. Each day he sells fruit and restocks. What is the output?
  5. Q5Consider the following program. Which of the following statements correctly explains why the printed value is obtained?
  6. Q6Consider the following code snippet. What is printed?
  7. Q8You are reviewing a connection-manager script for a load balancer. Which of the following statements are true at the en…
  8. Q9Consider the following code snippet. What is the output produced by the above code?
  9. Q10Consider the following code. What is the output of the above code?
  10. Q11In order to protect secrecy, OTPs are often encrypted across the network. Caesar cipher is one such encryption techniqu…
  11. Q12How many characters does the file contain after complete execution?
  12. Q13Consider the following code. What is the output of the above code?
  13. Q14The following program processes the file.
  14. Q15The following program processes the file.
  15. Q16Allowed : No Group Comprehension Questions : No Question Pattern Type : NonMatrix A university stores information about…
  16. Q17Allowed : No Group Comprehension Questions : No Question Pattern Type : NonMatrix A university stores information about…