Vidyalelo
Ruby Programming · Q34

Enumerators and Iterators in Ruby

Programming · Ruby Programming · question 34

Q34

What does the max method do in Ruby enumerators?

A.
Returns the total number of elements that satisfy a given condition
B.
Returns the element with the maximum index
C.
Returns the element with the maximum value based on a given condition
D.
Returns the maximum value in a collection
Answer

Answer: Option D

Solution

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