Vidyalelo
Python · Q61

Files Handling in Python

Programming · Python · question 61

Q61

What is the purpose of the truncate() method in file handling?

A.
It resizes the file to the specified size
Answer
B.
It writes data to the file
C.
It closes the file
D.
It deletes the file

Answer: Option A

Solution

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