PCAP - Certified Associate in Python Programming Practice Test
PCAP Closures and Decorators
What is a closure in Python?
Select your answer
A
An inner function that captures and remembers variables from the enclosing scope even after the outer function has returned
B
A function that returns multiple values using a tuple
C
A class that implements the __call__ method to behave like a function
D
A function that blocks access to global variables
Hint
✨ Remove Ads & Unlock Every Exam
— From $1.49
🃏 Study This Quiz as Flashcards →