PYTHON CIRCLE
Practice
Python Books
Archive
Subscribe
Login
Menu
Login
Practice
Python Books
Archive
Subscribe
Python Multiple Choice Questions
To read the entire remaining contents of the file as a string from a file object infile, we use
A. infile.read(2)
B. infile.read()
C. infile.readline()
D. infile.readlines()
Show Answer
Next Question
Correct Answer:
B
Explanation: read function is used to read all the lines in a file.
© 2022-2023 Python Circle
Contact
Sponsor
Archive
Sitemap