1.

To read the next line of the file from a file object infile, we use ____________(a) infile.read(2)(b) infile.read()(c) infile.readline()(d) infile.readlines()This question was addressed to me in my homework.This is a very interesting question from Files topic in section Regular Expressions and Files of Python

Answer» CORRECT CHOICE is (c) infile.readline()

Explanation: Execute in the SHELL to VERIFY.


Discussion

No Comment Found

Related InterviewSolutions