Vidyalelo
Python · Q50

Files Handling in Python

Programming · Python · question 50

Q50

How can you read the entire contents of a binary file in Python?

A.
By using the read() method on a file object
Answer
B.
By using the readlines() method on a file object
C.
By using the readall() method on a file object
D.
By using the readbinary() method

Answer: Option A

Solution

Answer: Option A
No explanation is given for this question Let's Discuss on Board