A. dump()
B. load()
C. Both A and B
D. None of the above
The dump() function is used to serialize a Python object and write it to a file. It takes two arguments: the object you want to serialize and a file-like object (typically opened in binary mode) where the serialized data will be written.