Question discussion

In Python language, which of following mode for opening the file, opens the file for both reading and writing and file pointer will be plac…

3489Medium DSSSB TGT Computer Science 0 replies 2 views
0

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?

  • Aab
  • Brb
  • Cr+
  • Da+
Correct answer: C

Explanation

The mode r+ opens a file for both reading and writing with the file pointer at the start.

Discussion 0

Nobody has replied yet. Start the discussion!