Vidyalelo
Python · Q11

Files Handling in Python

Programming · Python · question 11

Q11

To open a file c: .txt for appending data, we use . . . . . . . .

A.
outfile = open(“c:\\scores.txt”, “a”)
Answer
B.
outfile = open(“c:\\scores.txt”, “rw”)
C.
outfile = open(file = “c:\scores.txt”, “w”)
D.
outfile = open(file = “c:\\scores.txt”, “w”)

Answer: Option A

Solution

Answer: Option A
No explanation is given for this question Let's Discuss on Board