πŸ“Š Python
Q. What does flush() do?
  • (A) Empties the file
  • (B) Flushes file content to disk
  • (C) Deletes file content
  • (D) Closes the file
πŸ’¬ Discuss
βœ… Correct Answer: (B) Flushes file content to disk

Explanation: flush() forces writing of buffered data to the file.

Explanation by: Mr. Dubey
flush() forces writing of buffered data to the file.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
51
Total Visits
πŸ“½οΈ
8 mo ago
Published
πŸŽ–οΈ
Mr. Dubey
Publisher
πŸ“ˆ
85%
Success Rate