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?
- ATo protect the file from accidental deletion
- BTo guarantee file permissions are reset
- CTo release resources promptly and avoid resource leaks during execution
- 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