

InterviewSolution
Saved Bookmarks
1. |
To open a file c:scores.txt for appending data, we use ____________(a) outfile = open(“c:\scores.txt”, “a”)(b) outfile = open(“c:\scores.txt”, “rw”)(c) outfile = open(file = “c:scores.txt”, “w”)(d) outfile = open(file = “c:\scores.txt”, “w”) |
Answer» Right answer is (a) outfile = open(“c:\scores.txt”, “a”) The explanation is: a is used to indicate that data is to be appended. |
|