Q. To open a file c:\scores.txt for reading, we use

  • (A) infile = open(“c:\\scores.txt”, “r”)
  • (B) infile = open(“c:\\scores.txt”, “r”)
  • (C) infile = open(file = “c:\\scores.txt”, “r”)
  • (D) infile = open(file = “c:\\scores.txt”, “r”)
πŸ’¬ Discuss
βœ… Correct Answer: (B) infile = open(“c:\\scores.txt”, “r”)

You must be Logged in to update hint/solution

πŸ’¬ Discussion

πŸ“Š Question Analytics

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