Text Files 1
Language: English
Subject:
Technology
> Programming
Age: 17 - 18
Text Files 1
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”)
a
b
c
d
Which mode create new file if the file does not exist?
a. write mode
b. append mode
c. Both of the above
d. None of the above
a
b
c
d
File in python is treated as sequence of ________________
a. Bytes
b. Bites
c. bits
d. None of the above
a
b
c
d