Why is it considered good practice to close files explicitly even if the…
PYQ Coal India Management Trainee CBT 2026
Why is it considered good practice to close files explicitly even if the programming language runtime may close them at program termination?
- A.
To guarantee file permissions are reset
- B.
To protect the file from accidental deletion
- C.
To ensure the file remains hidden and cannot be reopened by others
- D.
To release resources promptly and avoid resource leaks during execution
Attempted by 71 students.
Sign up free to check your answer
Sign up freeLoading lesson…

