IT 116: Introduction to Scripting
Answers to Class 19 Ungraded Quiz

  1. What is the name of the program that we use to run Python scripts?
    python3
  2. What permissions does an account need on a Python script to be able to run it without typing the name of the Python interpreter on the command line? I want the names of the permissions.
    read and execute permission
  3. What is the name of the special line we use to run a Python program without directly calling the interpreter?
    the hashbang line
  4. Where must this special line appear?
    the very first line of the script
  5. What are the first two characters of this special line?
    #!
  6. What must follow these two characters? I don't want the actual value, I want you to tell to describe what it is.
    the absolute pathname of the Python interpreter
  7. What is a record?
    the complete set of data about some event or thing
  8. What are the individual pieces of data in a record called?
    fields
  9. What type of loop do we use to read records?
    a for loop
  10. What is the string method that can be used to remove the newline character at the end of a line?
    rstrip