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

  • (A) It checks if a collection includes a specific element
  • (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
πŸ’¬ Discuss
βœ… Correct Answer: (A) It checks if a collection includes a specific element

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
182
Total Visits
πŸ“½οΈ
2 y ago
Published
πŸŽ–οΈ
Mr. Dubey
Publisher
πŸ“ˆ
94%
Success Rate