Vidyalelo
Python · Q77

Files Handling in Python

Programming · Python · question 77

Q77

What will be the output of the following Python code? fo = open("foo.txt", "wb") print "Name of the file: ", fo.name fo.flush() fo.close()

A.
Compilation Error
B.
Runtime Error
C.
No Output
D.
Flushes the file when closing them
Answer

Answer: Option D

Solution

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