Answer:
d.
for line in infile :
print(line)
Explanation:
for loop is used to iterate through the each line of the file using line variable. The file is accessed using the object infile. For example if the file name is "file.txt" and it is opened in read mode. It contains the following lines:
hi there friend
how are you
what are you doing
Then the above given chunk of code gives the following output
hi there friend
how are you
what are you doing
At each iteration each line of the the file is printed on the output screen. The print() method is used to display these lines in output.