Multiple Choice
Given that the customer file references a file object,and the file was opened using the 'w' mode specifier,how would you write the string 'Mary Smith' to the file?
A) customer file.write('Mary Smith')
B) customer.write('w', 'Mary Smith')
C) customer.input('Mary Smith')
D) customer.write('Mary Smith')
Correct Answer:

Verified
Correct Answer:
Verified
Q8: Which of the following is the correct
Q9: It is possible to create a while
Q10: What will be the output after the
Q11: A filename _ is a short sequence
Q12: A(n)_ gives information about the line number(s)that
Q14: When a piece of data is read
Q15: Which mode specifier will erase the contents
Q16: In Python,there is nothing that can be
Q17: Which method could be used to strip
Q18: A(n)_ block includes one or more statements