Computer Science
Which of the following statement is incorrect in the context of pickled binary files ?
- The csv module is used for reading and writing objects in binary files.
- The pickle module is used for reading and writing objects in binary files.
- The load() of the pickle module is used to read objects.
- The dump() of the pickle module is used to write objects.
Python File Handling
1 Like
Answer
The csv module is used for reading and writing objects in binary files.
Reason — The CSV module is used for reading and writing objects in CSV files.
Answered By
2 Likes
Related Questions
Which of the following functions do you use to write data in the binary format ?
- write()
- output()
- dump()
- send()
Which of the following option is the correct usage for the tell() of a file object ?
- It places the file pointer at a desired offset in a file.
- It returns the entire content of a file.
- It returns the byte position of the file pointer as an integer.
- It tells the details about the file.
What is the significance of the seek() method ?
- It seeks the absolute path of the file.
- It tells the current byte position of the file pointer within the file.
- It places the file pointer at a desired offset within the file.
- It seeks the entire content of the file.
The correct syntax of seek() is :
- file_object.seek(offset[, referencepoint])
- seek(offset[, reference_point])
- seek(offset, file_object)
- seek.file_object(offset)