Starter quiz

  • Match the term to its definition.
    • index
      the location of an item in a list ✓
    • mutable
      able to be changed ✓
    • string
      a data type that is a collection of characters ✓
    • list
      a collection of data in a particular sequence ✓
    • remove
      take an item away from a list ✓
    • operator
      a symbol for a specific calculation ✓
  • What does the append method do in Python?
    • removes an item from a list
    • sorts a list in alphabetical order
    • adds an item to the end of a list  ✓
    • finds the index of an item
  • What is the term for repeating a sequence of instructions?
    • 'Iteration' ✓
  • What is a for loop used for?
    • to perform a single operation
    • to iterate through a list a specific number of times  ✓
    • to iterate through a list as long as a condition is met
    • to stop the execution of a program
  • What is a floating-point number in Python?
    • an integer value
    • a sequence of characters
    • a number with a decimal point  ✓
    • a Boolean value
  • How are lists defined in Python?
    • using angle brackets < >
    • using parentheses ( )
    • using curly braces { }
    • using square brackets [ ]  ✓
+