English

Which of the following functions changes the position of file pointer and returns its new position? - Computer Science (Python)

Advertisements
Advertisements

Question

Which of the following functions changes the position of file pointer and returns its new position?

Options

  • flush ()

  • tell ()

  • seek ()

  • offset ()

MCQ

Solution

seek ()

Explanation:

The seek () function moves the file pointer to a given byte position.

shaalaa.com
Setting Offsets in a File
  Is there an error in this question or solution?
2023-2024 (March) Board Sample Paper
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×