MCQs > IT & Programming > Python > Which will return the size of a file?

Python MCQs

Which of the following will return the size of a file?

Answer

Correct Answer: import os size = os.path.getsize('somefile.txt')

Explanation:

Note: This question has more than 1 correct answers

Note: This Question is unanswered, help us to find answer for this one

Python Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it

search

Python Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it