πŸ“Š Ruby
Q. What is the purpose of the Enumerator class in Ruby?
  • (A) It provides a way to enumerate over the elements of an array
  • (B) It allows you to create custom iterators for any enumerable object
  • (C) It allows you to define custom iteration behavior for any enumerable object
  • (D) It provides a way to enumerate over the elements of an array
πŸ’¬ Discuss
βœ… Correct Answer: (B) It allows you to create custom iterators for any enumerable object

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

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