McqMate
| Q. |
print(f.closed) |
| A. | true |
| B. | false |
| C. | none |
| D. | error |
| Answer» A. true | |
| Explanation: the with statement when used with open file guarantees that the file object is closed when the with block exits. | |
View all MCQs in
Problem Solving and Python ProgrammingNo comments yet