πŸ“Š Ruby
Q. What is an iterator in Ruby?
  • (A) A predefined set of instructions for performing a specific task
  • (B) A data structure that stores elements sequentially
  • (C) A method that iterates over elements in a collection
  • (D) A method that repeatedly calls a block of code
πŸ’¬ Discuss
βœ… Correct Answer: (C) A method that iterates over elements in a collection

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

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