Q. How to open a file for writing in binary mode? (A) open('file', 'wb') (B) open('file', 'rb') (C) open('file', 'w') (D) open('file', 'r') ποΈ Show Answer π¬ Discuss π Share β‘Menu β Correct Answer: (A) open('file', 'wb') Explanation: 'wb' mode opens a file for writing binary data.