IT 116: Introduction to Scripting
Quiz 1 Answers

  1. What do you call one or more lines of code that perform a complete action?
    a statement
  2. What do you call a series of statements that has a name and performs some task?
    a function
  3. What do you call a value given to a function when it is run?
    an argument
  4. What do you call a a sequence of characters?
    a string
  5. What do you call a value written out directly inside the code?
    a literal
  6. What do you call a statement that runs a function?
    a function call
  7. What is an expression?
    anything that can be turned into a value
  8. What is the name of the function used to read input from the keyboard?
    input
  9. Write an assignment statement that asks the user for an integer, converts it to the correct data type and assigns it to the variable number.
    number = int(input("Please enter an integer: "))
  10. Name three data types.
    integer, decimal, string
    	or
    int, float, str