Q. Which method reads the entire content of a file as a single string?

  • (A) readline()
  • (B) read()
  • (C) readlines()
  • (D) readall()
πŸ’¬ Discuss
βœ… Correct Answer: (B) read()
Explanation: The read() method reads the entire file content as one string.
Explanation by: Mr. Dubey
The read() method reads the entire file content as one string.

πŸ’¬ Discussion


πŸ“Š Question Analytics

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