Python File Handling - Quiz

  • A Opens or creates a text file named python.csv to write
  • B Opens or creates a text file named python.csv to append
  • C Opens or creates a text file named python.csv to read
  • D Opens a new file named python.csv to append
  • 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
  • A Opens or creates a text file named python.csv to write
  • B Opens or creates a text file named python.csv to append
  • C Opens or creates a text file named python.csv to read
  • D Opens a new file named python.csv to write
  • A Opens an existing text file named python.csv to write
  • B Opens an existing text file named python.csv to append
  • C Opens an existing text file named python.csv to read
  • D Opens a new file named python.csv to read
  • A Opens a text file named python.txt to read from or write to
  • B Opens a text file named python.txt to read
  • C Opens a text file named python.txt to write
  • D Opens a new file named python.txt to append
  • A infile = open(
  • B infile = open(
  • C infile = open(file =
  • D infile = open(file =