Question 175Asked in CIL MT Systems, 24 Aug 2026 (3:00 PM, CBT-26)

Why is it considered good practice to close files explicitly even if the programming language runtime may close them at program termination?

  1. ATo protect the file from accidental deletion
  2. BTo guarantee file permissions are reset
  3. CTo release resources promptly and avoid resource leaks during execution
  4. DTo ensure the file remains hidden and cannot be reopened by others
Show answerHide answer

Correct answer: (C) To release resources promptly and avoid resource leaks during execution

From CIL MT Systems PYQ, 24 Aug 2026 (3:00 PM, CBT-26)

This is question 175 of CIL MT Systems PYQ, 24 Aug 2026 (3:00 PM, CBT-26). See all questions of this paper with answers, or attempt the paper as a timed online test to get your score and all-India rank.