πŸ“Š Problem Solving and Python Programming
Q. 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”)
πŸ’¬ Discuss
βœ… Correct Answer: (A) outfile = open(“c:\\scores.txt”, “a”)

Explanation: a is used to indicate that data is to be appended.


Explanation by: Mr. Dubey
a is used to indicate that data is to be appended.

πŸ’¬ Discussion

πŸ“Š Question Analytics

πŸ‘οΈ
739
Total Visits
πŸ“½οΈ
3 y ago
Published
πŸŽ–οΈ
Mr. Dubey
Publisher
πŸ“ˆ
99%
Success Rate