Vidyalelo
Ruby Programming · Q26

Enumerators and Iterators in Ruby

Programming · Ruby Programming · question 26

Q26

Which method is used to check if all elements in a collection satisfy a condition in Ruby enumerators?

A.
any?
B.
all?
Answer
C.
one?
D.
None of the above

Answer: Option B

Solution

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