Examplary
Start for free
Oak ComputingTest · Computing

Writing to CSV files

The starter and exit quiz of the lesson “Writing to CSV files”, from the unit “Programming: dictionaries and data files” (Year 11 Computing) by Oak National Academy.

Free to use. Edit it, share it and hand it out to your students.

Oak National Academy

12 questions

  1. What does CSV stand for?
  2. Each line in a CSV file is called a ___.
  3. What method is used in Python to remove the character from a string?
  4. The split() method turns a string into a ___.
  5. What does this code do?line = "Aisha,0"line = line.split(",")
  6. Using read() will read the ___ of a file into one string.
  7. Each line in a CSV file represents a new ___ or row.
  8. Which error will this code produce?file = open("data.csv", "w") file.write([1, 2, 3]) file.close()
  9. To convert a list of integers to strings, you can use the ___() function inside a loop.
  10. What does the .join() method do?
  11. Match the function with its description.
  12. To add a new row in a CSV file, you include the special character ___ at the end of the string.

License: OGL

Writing to CSV files · Examplary