Game Preview

Python 201 Mid-Semester Review

  •  English    23     Public
    Review first part of the semester https://github.com/hytechclub/py-201/tree/master/MidSemesterReview#mid-semester-review
  •   Study   Slideshow
  • What comes after "def" when defining a function?
    The function name
  •  15
  • What comes after the parentheses in a function definition?
    colon
  •  15
  • What is the keyword needed to define a function?
    def
  •  15
  • What two things are needed to call a function?
    Function name, parentheses
  •  15
  • Before a function is called, it must be...
    defined
  •  15
  • Each command in the body of a function must be...
    indented
  •  15
  • 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 the value of the "bark" variable?
    grey-brown
  •  15
  • What will be printed?
    dory
  •  15
  • What will be printed?
    giraffe
  •  15
  • What will be the value of the "total" variable?
  •  15
  • Which function lets the user enter information into the console?
    input
  •  15