Vidyalelo
Ruby Programming · Q41

Advanced Topics in Ruby

Programming · Ruby Programming · question 41

Q41

What does the term "memoization" refer to in Ruby?

A.
Converting a method into a lambda function
B.
Dynamically defining methods based on certain conditions
C.
Caching the return value of a method for future invocations
Answer
D.
Evaluating a block of code within the context of a specific object

Answer: Option C

Solution

Answer: Option C
No explanation is given for this question Let's Discuss on Board