What is the return type of fileobject.tell() method in python?
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.
Related questions:
2026: 13 May Shift 2
2025: 27 May Shift 2