KnowledgeBoat Logo

Computer Science

What happens if no arguments are passed to the seek() method?

  1. file position is set to the start of file
  2. file position is set to the end of file
  3. file position remains unchanged
  4. results in an error

Python Data Handling

2 Likes

Answer

results in an error

Reason — If no arguments are passed to the seek() method in Python, it will result in an error because the method expects at least one argument to specify the new position within the file.

Answered By

1 Like


Related Questions