

McqMate
Q. |
How do you close a file object (fp)? |
A. | close(fp) |
B. | fclose(fp) |
C. | fp.close() |
D. | fp. close () |
Answer» C. fp.close() | |
Explanation: close() is a method of the file object. |
View all MCQs in
Problem Solving and Python ProgrammingNo comments yet