Home / MCQ Bank / Computer
Computer Formatting And Decorators

Which decorator is used to cache the results of a function call in Python?

Select the best option to verify your answer:
Show Correct Answer
Correct Answer: Option A • @cached

Related Computer Questions

What is the output of the following code: int arr[3] = {1, 2, 3}; int *ptr = arr; cout << *(ptr + 1); in C++? Which of the following applies to a class rather than an object? Suppose we find the 8th term using the recursive implementation. The arguments passed to the function calls will be as follows: fibonacci(8) fibonacci(7) + fibonacci(6) fibonacci(6) + fibonacci(5) + fibonacci(5) + fibonacci(4) fibonacci(5) + fibonacci(4) + fibonacci(4) + fibonacci(3) + fibonacci(4) + fibonacci(3) + fibonacci(3) + fibonacci(2) : : : Which property is shown by the above function calls? In Ruby, what is the purpose of the module_function keyword? Sqoop is an open source tool written at ______