Vidyalelo
Ruby Programming · Q39

Advanced Topics in Ruby

Programming · Ruby Programming · question 39

Q39

What is the significance of using the include? method in Ruby's Enumerable module?

A.
It checks if a collection includes a specific element
Answer
B.
It includes a module into the current class
C.
It iterates over each element of a collection
D.
It creates a new collection by filtering elements based on a given condition

Answer: Option A

Solution

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