Study

Python Collections Review

  •   0%
  •  0     0     0

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