Vidyalelo
Python · Q17

Files Handling in Python

Programming · Python · question 17

Q17

To read two characters from a file object infile, we use . . . . . . . .

A.
infile.read(2)
Answer
B.
infile.read()
C.
infile.readline()
D.
infile.readlines()

Answer: Option A

Solution

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