What can you deduce from the following statement? (Select two answers)

What can you deduce from the following statement? (Select two answers)

str = open(‘file.txt’, "rt")
A . str is a string read in from the file named file.txt
B . a newlina character translation will be performed during the reads
C . if file. txt does not exist, it will be created
D . the opened file cannot be written with the use of the str variable

Answer: A,D

Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments