

McqMate
Q. |
fo.close() |
A. | compilation error |
B. | runtime error |
C. | no output |
D. | flushes the file when closing them |
Answer» D. flushes the file when closing them | |
Explanation: the method flush() flushes the internal buffer. python automatically flushes the files when closing them. but you may want to flush the data before closing any file. |
View all MCQs in
Problem Solving and Python ProgrammingNo comments yet