Vidyalelo
Ruby Programming · Q51

Advanced Topics in Ruby

Programming · Ruby Programming · question 51

Q51

What is a "memoization" technique in Ruby?

A.
Dynamically defining methods based on certain conditions
B.
Creating anonymous functions that can be called later
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