How do you get the name of a file from a file object (fp)?
A. fp.name
B. fp.file(name)
C. self.__name__(fp)
D. fp.__name__()
Answer:A
How do you get the name of a file from a file object (fp)?
A. fp.name B. fp.file(name) C. self.__name__(fp) D. fp.__name__()
Explanation: name is an attribute of the file object.