IT 116: Introduction to Scripting
Class 17 Ungraded Quiz
-
What is a file?
-
What are the two things that uniquely specify a file?
-
What must you create to work with a file in Python?
-
What is the Python function that creates the thing you need to work with a file?
-
What two things does this function do?
-
What two pieces of information do you need to give this function as arguments?
-
What are the three ways you can open a file?
-
What are the two things that make up a pathname?
-
If I have a variable named file, what is the Python
statement I would write to write the work "hello" to the file?
-
What is the name of the method used to read the ENTIRE
contents of a file?