NIELIT O Level Exam

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 बाइट पीछे ले जायेगा|

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.


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