Game Preview

Python Collections Review

  •  English    16     Public
    Python Collections
  •   Study   Slideshow
  • What is the index of the first element in a list?
    0
  •  15
  • True or False: Lists are stored sequentially (in order)
    True
  •  10
  • True or False: Dictionaries are stored sequentially (in order)
    False
  •  10
  • True or False: It is possible to have a List containing Dictionaries
    True
  •  10
  • What will be printed?
    5
  •  15
  • What will be printed?
    0
  •  15
  • What will be printed?
    dory
  •  15
  • What will be printed?
    giraffe
  •  15
  • What will be the value of the "bark" variable?
    grey-brown
  •  15
  • What will be the value of the "total" variable?
    48
  •  15
  • Which is faster, Selection Sort or Quicksort?
    Quicksort
  •  10
  • What type of algorithm is Merge Sort?
    Divide & Conquer
  •  20
  • Which function will add an item to the end of a list?
    append
  •  15
  • Which function will get the length of a list?
    len
  •  15
  • Dictionaries store data as...
    key-value pairs
  •  15
  • Dictionaries are a lot like...
    objects
  •  20