Programming and Problem Solving through Python : Database Connectivity in Python

कौन सा स्टेटमेंट फाइल पॉइंटर को वर्तमान स्थिति से 10 बाइट पीछे ले जायेगा| , Which statement will move file pointer 10 bytes backward from current position ?

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




Solution
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.


CCC Online Test 2021 CCC Practice Test Hindi Python Programming Tutorials Best Computer Training Institute in Prayagraj (Allahabad) O Level NIELIT Study material and Quiz Bank SSC Railway TET UPTET Question Bank career counselling in allahabad Sarkari Exam Quiz Website development Company in Allahabad