In Python language, which of following mode for opening the file, opens the file for
In Python language, which of following mode for opening the file, opens the file for
both reading and writing and file pointer will be placed at the start of the file?
Show answerHide answer
Correct answer: (C) r⁺
Explanation
"r+" opens a file for reading and writing with the file pointer at the beginning. "a+" places it at the end; "rb" is read-only and "ab" append-only.