Q11easy
Why might a Closure cause a memory leak in a language with Garbage Collection?
Topic-wise practice questions for Programming (C++ / Java / Python). Test your knowledge, check solutions on demand, and pace your preparation.
def multiplier(factor):
return lambda x : x * factor
triple = multiplier(3)
result = triple(10)