CBSE Class 12 Computer Science Question 16 of 42

Solved 2024 Sample Question Paper CBSE Class 12 Computer Science (083) — Question 16

Back to all questions
16
Question

Question 16

Which of the following functions changes the position of file pointer and returns its new position?

  1. flush()
  2. tell()
  3. seek()
  4. offset()
Answer

seek()

Reason — The seek() function in Python is utilised to relocate the file pointer within a file to a specific position. It also accepts an optional second argument, which denotes the starting point for determining this new position.