0 of 5 Questions completed
Questions:
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 5 Questions answered correctly
Your time:
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)
Which mode should be used to open a file for reading in Python?
If a file named “example.txt” already exists and you open it in ‘w’ mode, what will happen?
Which Python library is primarily used for reading and writing JSON files?
What does the following code snippet do?
with open('sample.txt', 'r') as file:
content = file.read()
Which method is used to read a single line from a file in Python?