निम्नलिखित कथन में 'f' क्या है?
What is ‘f’ in the following statement ?
f=open(“Data.txt”, “r”)
A
File Name
B
File Handle (file object/file pointer)
C
Mode of file
D
File Handling
Explanation
In the statement f = open("Data.txt", "r"):
fis the file handle. It acts as a reference to the file object, allowing you to perform actions like reading from or writing to the file.
So, the correct answer is:
(B) File Handle (file object/file pointer).
Correct Answer: B) File Handle (file object/file pointer)