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

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