Company: IndusInd bank on-campus_19may
Difficulty: medium
This set contains four independent multiple-choice questions from the Python 2.0 section of the assessment. Each question is self-contained: read the stem, study any code shown, and pick the single best option. How your answer is graded: your program reads no input. Print the option number you chose for each of the four questions, one per line, in order Q1, Q2, Q3, Q4. Q1. What is a closure in Python and when is it created? Function that returns another function Function with no parameters Function that captures variables from enclosing scope Function defined inside a class Q2. What is the output of the following Python code? class Property: def __init__(self, fget=None, fset=None, fdel=None, doc=None): self.fget = fget self.fset = fset self.fdel = fdel self.__doc__ = doc def __get__(self, instance, instancetype=None): if instance is None: return self if self.fget is None: raise AttributeError("can't get attribute") return self.fget(instance) def __set__(self, instance, value): if self