Q. How do you check if a file is closed?

  • (A) file.status
  • (B) file.closed
  • (C) isfile.closed()
  • (D) checkclose(file)
πŸ’¬ Discuss
βœ… Correct Answer: (B) file.closed
Explanation: file.closed returns True if the file is closed.
Explanation by: Mr. Dubey
file.closed returns True if the file is closed.

πŸ’¬ Discussion


πŸ“Š Question Analytics

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