Home / Engineering / Problem Solving and Python Programming / Question

M

Mr. Dubey • 51.43K Points
Coach

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”)
Correct answer : Option (B) - infile = open(“c:\\scores.txt”, “r”)

Share

Discusssion

Login to discuss.