Home / Engineering / Problem Solving and Python Programming / Question

M

Mr. Dubey • 51.17K Points
Coach

Q.) What is the use of seek() method in files?

(A) sets the file’s current position at the offset
(B) sets the file’s previous position at the offset
(C) sets the file’s current position within the file
(D) none of the mentioned
Correct answer : Option (A) - sets the file’s current position at the offset

Explanation:
 sets the file’s current position at the offset. the method seek() sets the file’s current position at the offset.

Share

Discusssion

Login to discuss.