PYTHON CIRCLE
Practice
Python Books
Archive
Subscribe
Login
Menu
Login
Practice
Python Books
Archive
Subscribe
Python Multiple Choice Questions
How do you close a file object (fp)?
A. close(fp)
B. fclose(fp)
C. fp.close()
D. fp.__close__()
Show Answer
Next Question
Correct Answer:
C
Explanation: close() is a method of the file object.
© 2022-2023 Python Circle
Contact
Sponsor
Archive
Sitemap