πŸ“Š Ruby
Q. What does the grep method do in Ruby enumerators?
  • (A) Sorts elements in a collection
  • (B) Filters elements in a collection based on a regular expression
  • (C) Removes duplicate elements from a collection
  • (D) Sorts elements in a collection
πŸ’¬ Discuss
βœ… Correct Answer: (B) Filters elements in a collection based on a regular expression

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

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