Question: What is a free variable?

  1. a variable defined outside a function
  2. a variable referenced in a function that is not assigned a value by that function
  3. a variable that has a global scope
  4. a variable defined in a class and available to all methods in that class

Answer: The correct answer of the above question is Option A:a variable defined outside a function