Quiz on Using Decorators to Improve Our Code
Test your understanding of using decorators to improve code.
We'll cover the following...
We'll cover the following...
Technical Quiz
1.
What is the purpose of decorators?
A.
They are a mechanism that allows us to specify data types for variables in Python.
B.
They are a mechanism to simplify the way functions and classes are defined when they have to be modified after their original definition.
C.
They are a mechanism that allows us to overwrite function definitions in specific scenarios.
D.
They are a mechanism that allows us to enforce data returned by a function is of a specific data type.
1 / 5