McqMate
| Q. |
Correct syntax of file.writelines() is? |
| A. | file.writelines(sequence) |
| B. | fileobject.writelines() |
| C. | fileobject.writelines(sequence) |
| D. | none of the mentioned |
| Answer» C. fileobject.writelines(sequence) | |
| Explanation: the method writelines() writes a sequence of strings to the file. the sequence can be any iterable object producing strings, typically a list of strings. there is no return value. | |
View all MCQs in
Problem Solving and Python ProgrammingNo comments yet