Skip to main contentSkip to solution

What is the return type of fileobject.tell() method in python?

Solution

✅ Correct Option: 4

The tell() method returns the current position of the file pointer, measured in bytes from the start of the file. A position is a whole number, so the return type is int.


Option 1: Python has no file position as a decimal value, so float is never returned.

Option 3: Python has no double type. Its decimal type is float.

Keyboard Shortcuts

  • Left arrow: Previous question
  • Right arrow: Next question
  • S key: Jump to solution
  • Q key: Jump to question