Range Quiz


(1..100) # ... A
(1...100) # .. B
(1..101) # ... C
(1...101) # .. D

Which of the above expressions will create a range from 1 - 100?

A B C D

Which of the following methods exist for ranges?

#each #slice #[] #last

results matching ""

    No results matching ""