IT 117: Intermediate to Scripting
Class 4 Ungraded Quiz

  1. To make a script executable, what permissions must the script have?
    read and execute
  2. What special line must be added to a script to run it without typing python3 on the command line?
    hashbang line
  3. What do you call an error caused by code that does not follow the rules of the Python language?
    a syntax error
  4. What do you call an error that causes the code to give incorrect results?
    a logic error
  5. What do you call an error that occurs when a value in a Python statement causes the statement to fail?
    a runtime error
  6. What do you call a collection of things stored one right after another?
    a sequence
  7. What are the three data types that are a collection of things stored one right after the other.
    lists, tuples and strings
  8. What do you call the integer used to select one element of a list.
    an index
  9. Write the Python statement you would use to create the empty list named empty.
    empty = []
  10. What is the string method that breaks up a string into a list of values?
    split