Q. How do you change the file position to an offset value from the start?

  • (A) fp.seek(offset, 0)
  • (B) fp.seek(offset, 1)
  • (C) fp.seek(offset, 2)
  • (D) none of the mentioned
πŸ’¬ Discuss
βœ… Correct Answer: (A) fp.seek(offset, 0)
Explanation: 0 indicates that the offset is with respect to the start.

Explanation by: Mr. Dubey
0 indicates that the offset is with respect to the start.

πŸ’¬ Discussion

πŸ“Š Question Analytics

πŸ‘οΈ
352
Total Visits
πŸ“½οΈ
3 y ago
Published
πŸŽ–οΈ
Mr. Dubey
Publisher
πŸ“ˆ
93%
Success Rate