Home / Report Question

Q. Which loop in Ruby allows you to iterate over a collection of elements?
  • A. while
  • B. for
  • C. until
  • D. each

Correct Answer: D