Question:

The following five statements describe the methods used for file handling in Python. Choose an option that correctly sequences the definition of each.
(A) Method used to open a file.
(B) Method used to write the objects in a binary file.
(C) Method used to read data from a binary file.
(D) Method used to return an integer that specifies current position of the file object.
(E) Method used to position the file object at a particular position in a file.
Choose the correct answer from the options given below:

Updated On: Apr 17, 2024
  • Method used to open a file.
  • Method used to write the objects in a binary file.
  • Method used to read data from a binary file.
  • Method used to return an integer that specifies current position of the file object.
Hide Solution
collegedunia
Verified By Collegedunia

The Correct Option is A

Solution and Explanation

The correct option is(A): Method used to open a file
Was this answer helpful?
0
0