Which method of fs module is used to truncate a file?
Correct Answer: fs.ftruncate(fd, len, callback)
Explanation:
Note: This Question is unanswered, help us to find answer for this one
Node.js Skill Assessment
Your Skill Level: Poor
Retake Quizzes to improve it
More Node.js MCQ Questions
How to convert from Buffer instance to string of base64?
Which of the following code print the total free memory of operating system?
Select valid stream instances:
How can you access the command line arguments passed to your program?
Which of the following is the correct way to get a normalized path?
In express application you are handling the route '/user/:name'. How could you access the 'name' property?
Which of the following should not to use in NodeJS?
Which of the following is the result of module.id ?
Which of the following timers methods exists in Node.js?
Which of the following variables you can use in modules?