Vidyalelo
Ruby Programming · Q21

Enumerators and Iterators in Ruby

Programming · Ruby Programming · question 21

Q21

What is the purpose of the lazy method in Ruby enumerators?

A.
Converts an enumerator into a hash
B.
Converts an enumerator into an array
C.
Delays the execution of operations on an enumerator until they are needed
Answer
D.
Executes operations on an enumerator immediately

Answer: Option C

Solution

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