Q. What will happen if you call read() after reading the entire file once?

  • (A) Returns entire file again
  • (B) Returns empty string
  • (C) Raises error
  • (D) Returns None
πŸ’¬ Discuss
βœ… Correct Answer: (B) Returns empty string
Explanation: The file pointer is at the end after the first read; subsequent reads return an empty string.
Explanation by: Mr. Dubey
The file pointer is at the end after the first read; subsequent reads return an empty string.

πŸ’¬ Discussion


πŸ“Š Question Analytics

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