CBSE Class 12 Computer Science
Question 47 of 136
Data File Handling — Question 12
Back to all questionsdump
Reason — To write an object on to a binary file opened in the write mode, we should use dump() function of pickle module as per following syntax: pickle.dump(<object-to-be-written>, <file-handle-of-open-file>).