Vidyalelo
Ruby Programming · Q8

Advanced Topics in Ruby

Programming · Ruby Programming · question 8

Q8

What is memoization in Ruby?

A.
Evaluating code at runtime based on user input
B.
Creating anonymous functions that can be called later
C.
Dynamically defining methods based on certain conditions
D.
Caching the return value of a method for future invocations
Answer

Answer: Option D

Solution

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