πŸ“Š Ruby
Q. What is the purpose of the reduce method in Ruby enumerators?
  • (A) To sort elements in a collection
  • (B) To map elements to a new collection
  • (C) To combine all elements in a collection into a single value
  • (D) To filter elements in a collection
πŸ’¬ Discuss
βœ… Correct Answer: (C) To combine all elements in a collection into a single value

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

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