To open a file c:scores.dat for binary writing, use __________.

Loading

โœช Choose the correct option.

To open a file c:scores.dat for binary writing, use __________.

A. outfile = open(“c:scores.dat”, “wb”)
B. outfile = open(“c:scores.dat”, “w”)
C. outfile = open(“c:scores.dat”, “a”)
D. outfile = open(“c:scores.dat”, “w”)