McqMate
| Q. |
How do you change the file position to an offset value from the start? |
| A. | fp.seek(offset, 0) |
| B. | fp.seek(offset, 1) |
| C. | fp.seek(offset, 2) |
| D. | none of the mentioned |
| Answer» A. fp.seek(offset, 0) | |
| Explanation: 0 indicates that the offset is with respect to the start. | |
View all MCQs in
Problem Solving and Python ProgrammingNo comments yet