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. 9. Correct syntax of file.writelines() is?
A. file.writelines(sequence)
B. fileObject.writelines()
C. fileObject.writelines(sequence)
D. None of the mentioned
Answer:A
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. 9. Correct syntax of file.writelines() is?
A. file.writelines(sequence) B. fileObject.writelines() C. fileObject.writelines(sequence) D. None of the mentioned