Examveda

What is a memoization decorator used for?

A. To add logging to functions

B. To modify function behavior

C. To cache function results

D. To validate function inputs

Answer: Option C

Solution (By Examveda Team)

A memoization decorator is used to cache the results of a function to improve performance.

This Question Belongs to Python Program >> Decorators In Depth

Join The Discussion

Related Questions on Decorators in Depth