Vidyalelo
Ruby Programming · Q19

Enumerators and Iterators in Ruby

Programming · Ruby Programming · question 19

Q19

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

A.
Applies a block of code to each element and returns a new collection
B.
Sorts elements in a collection
C.
Skips elements in a collection until a given condition is met
Answer
D.
Removes elements from a collection until a given condition is met

Answer: Option C

Solution

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