πŸ“Š Python
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

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