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.


Latest Current Affairs 2025 Online Exam Quiz for One day Exam Online Typing Test CCC Online Test Python Programming Tutorials Best Computer Training Institute in Prayagraj (Allahabad) Online MBA 2 years Online MCA Online BCA Best Website and Software Company in Allahabad