Computer Science
Which of the following modes is used for both writing and reading from a binary file?
- wb+
- w
- wb
- w+
Python Data Handling
3 Likes
Answer
wb+
Reason — 'wb+' mode is used for both writing and reading from a binary file.
Answered By
2 Likes
Related Questions
What does CSV stand for?
- Cursor Separated Variables
- Comma Separated Values
- Cursor Separated Values
- Cursor Separated Version
Which module is used for working with CSV files in Python?
- random
- statistics
- csv
- math
Which statement is used to retrieve the current position within the file?
- fp.seek()
- fp.tell()
- fp.loc
- fp.pos
What happens if no arguments are passed to the seek() method?
- file position is set to the start of file
- file position is set to the end of file
- file position remains unchanged
- results in an error