πŸ“Š Python
Q. Which method is used to truncate a file?
  • (A) shorten()
  • (B) resize()
  • (C) truncate()
  • (D) cut()
πŸ’¬ Discuss
βœ… Correct Answer: (C) truncate()

Explanation: truncate() reduces the file size to the specified number of bytes.

Explanation by: Mr. Dubey
truncate() reduces the file size to the specified number of bytes.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
56
Total Visits
πŸ“½οΈ
8 mo ago
Published
πŸŽ–οΈ
Mr. Dubey
Publisher
πŸ“ˆ
96%
Success Rate