IT 116: Introduction to Scripting
Class 17 Ungraded Quiz

  1. What is a file?

  2. What are the two things that uniquely specify a file?

  3. What must you create to work with a file in Python?

  4. What is the Python function that creates the thing you need to work with a file?

  5. What two things does this function do?

  6. What two pieces of information do you need to give this function as arguments?

  7. What are the three ways you can open a file?

  8. What are the two things that make up a pathname?

  9. If I have a variable named file, what is the Python statement I would write to write the work "hello" to the file?

  10. What Python statement should I write when I am finished using the file variable mentioned above?