Q. What happens if close() is called twice on the same file?

  • (A) Raises an error
  • (B) Second call is ignored
  • (C) Resets file pointer
  • (D) Deletes file
πŸ’¬ Discuss
βœ… Correct Answer: (B) Second call is ignored
Explanation: Calling close() multiple times on a closed file has no effect.
Explanation by: Mr. Dubey
Calling close() multiple times on a closed file has no effect.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
94
Total Visits
πŸ“½οΈ
1 y ago
Published
πŸŽ–οΈ
Mr. Dubey
Publisher
πŸ“ˆ
93%
Success Rate