Solveeit Logo

Question

Computer Science Question on Python Libraries

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:

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.

Answer

Method used to open a file.

Explanation

Solution

The correct option is(A): Method used to open a file