1.

What is the difference between r+ and w+ modes?(a) no difference(b) in r+ the pointer is initially placed at the beginning of the file and the pointer is at the end for w+(c) in w+ the pointer is initially placed at the beginning of the file and the pointer is at the end for r+(d) depends on the operating systemThis question was addressed to me in semester exam.Query is from Files in chapter Regular Expressions and Files of Python

Answer» CORRECT choice is (b) in R+ the pointer is INITIALLY placed at the beginning of the file and the pointer is at the end for w+

The EXPLANATION: none.


Discussion

No Comment Found

Related InterviewSolutions