Question: What would happen if you did not alter the state of the element that an algorithm is operating on recursively?

  1. You do not have to alter the state of the element the algorithm is recursing on.
  2. You would eventually get a KeyError when the recursive portion of the code ran out of items to recurse on.
  3. You would get a RuntimeError: maximum recursion depth exceeded.
  4. The function using recursion would return None.

Answer: The correct answer of the above question is Option C:You would get a RuntimeError: maximum recursion depth exceeded.