McqMate
| Q. |
What is the use of “w” in file handling? |
| A. | read |
| B. | write |
| C. | append |
| D. | none of the mentioned |
| Answer» B. write | |
| Explanation: this opens the file for writing. it will create the file if it doesn’t exist, and if it does, it will overwrite it. | |
View all MCQs in
Problem Solving and Python ProgrammingNo comments yet