Q. Which method is used to truncate a file?
β
Correct Answer: (C)
truncate()
Explanation: truncate() reduces the file size to the specified number of bytes.