Single Choice Not Set

QWhat does the following statement do?
x = open('python.bat', 'wb')

ID: #3731 Python File Handling 213 views
Question Info
#3731Q ID
Not SetDifficulty
Python File HandlingTopic

Choose the Best Option

Click any option to instantly check if you're correct.

  • A Opens or creates a binary file named python.bat to write
  • B Opens or creates a binary file named python.bat to append
  • C Opens or creates a binary file named python.bat to read
  • D Opens a new file named python.bat to write
Correct Answer

Explanation

Opens or creates a binary file named python.bat to write

Share This Question

Challenge a friend or share with your study group.