MCQ Answer

Which statement will move file pointer 10 bytes backward from current position ?

Which statement will move file pointer 10 bytes backward from current position ?

कौन सा स्टेटमेंट फाइल पॉइंटर को वर्तमान स्थिति से 10 बाइट पीछे ले जायेगा|
Topic : Database Connectivity in Python

A. f.seek(-10, 0)

B. f.seek(10, 0)

C. f.seek(-10,1)

D. none of the above उपरोक्त में से कोई नहीं




Correct Answer is :

C. f.seek(-10,1)



Explanation

The second parameter in seek() function indicates to the position from where the file object to start with. This parameter accepts following  values: 

0 - to set the file handler at the beginning of the file. 

1 - to set the file handler to the current position.


Online Exam Quiz for One day Exam Online Typing Test CCC Online Test 2026 Best Computer Training Institute in Prayagraj (Allahabad) Best Java Training Institute in Prayagraj (Allahabad) Best Python Training Institute in Prayagraj (Allahabad) O Level Online Test in Hindi Best Website and Software Company in Allahabad