0 of 6 questions completed
You have already completed the quiz before. Hence you can not start it again.
Quiz is loading…
You must sign in or sign up to start the quiz.
You must first complete the following:
0 of 6 questions answered correctly
Time has elapsed
You have reached 0 of 0 point(s), (0)
Earned Point(s): 0 of 0, (0)
0 Essay(s) Pending (Possible Point(s): 0)
You have the potential to do better! 🙂
If you found a concept confusing on this page then please leave a comment below asking for clarity.
Try re-reading the tutorial on this page before you retake this quiz!
Good work on clearing this quiz!
Outstanding work! You have mastered this lesson. Onward to the next one!
To read two characters from a file object infile, we use
What is the output?
f = None
for i in range (5):
with open(“data.txt”, “w”) as f:
if i > 2:
To read the next line of the file from a file object infile, we use
What is the syntax for removing (deleting) a file?
Given: useless_file = Path(“please_delete.txt”)
What is the use of seek(offset) method in files?
What is the syntax of the command rename(), used when you want to rename a file?
file = Path(“c:/folder1/name1.docx”)