CBSE · 083Class XII · 2025Section A1 mark
Question 20
4 March 2025 · Computer Science (083)
Assertion (A): For a binary file opened using 'rb' mode, the pickle.dump() method will display an error. Reason (R): The pickle.dump() method is used to read from a binary file.
Answer
(c) A is true but R is false
Explanation
dump() writes data, so 'rb' (read binary) is the wrong mode (Assertion True). dump() is for writing, not reading (Reason False).