Multiple Choice
What happens when a function tries to assign or change a value of a variable that has been defined at the module level?
A) The function succeeds, because the module variable is considered global in scope.
B) The function succeeds, but the value is appended to the variable.
C) The function fails, and an out of scope error message is raised.
D) Python creates a temporary variable with the same name, and the value of that variable exists only within the scope of the function.
Correct Answer:

Verified
Correct Answer:
Verified
Q16: In bottom-up design, you decompose a complex
Q17: A Python function cannot under normal circumstances
Q18: What are the two different ways that
Q19: In Python, functions are treated as first-class
Q20: An abstraction hides detail and thus allows
Q22: How does top-down design work?<br>A) A problem
Q23: What are two common methods by which
Q24: When you design an algorithm, it should
Q25: To get a better understanding of how
Q26: In a recursive function, what is used