Starter quiz

  • ______ is used when there is more than one possible path for a program to follow.
    • 'selection' ✓
  • Match the keyword to the definition.
    • selection
      used when there is more than one possible path for a program to follow ✓
    • list
      a collection of data in a particular sequence ✓
    • data structure
      an organised way to store data for easy use ✓
    • index
      the location of an item or element in a list or string ✓
  • What is the correct way to access the first item in a list called names?
    • `names[0]`  ✓
    • `names[1]`
    • `names{0}`
    • `names(0)`
    • `names(1)`
  • What letter can you type in to join text and the values held by a variable in a print statement?
    • j
    • c
    • f  ✓
    • p
  • What is an IndexError?
    • when you have too many items in a list
    • when you refer to an index that does not exist in a list  ✓
    • when you have too few items in a list
    • when you have two of the same index values in a list
  • A list is a d______ data structure that can grow or shrink as you add or remove items.
    • 'dynamic' ✓
+