Q. Which method reads the entire content of a file at once?

  • (A) readline()
  • (B) readlines()
  • (C) read()
  • (D) fetch()
πŸ’¬ Discuss
βœ… Correct Answer: (C) read()
Explanation: The read() method returns the full content of the file as a single string.
Explanation by: Mr. Dubey
The read() method returns the full content of the file as a single string.

πŸ’¬ Discussion


πŸ“Š Question Analytics

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