Multiple choice technology programming languages

my_array = ["alpha", "beta", "gamma"] puts my_array.collect { |word| word.capitalize } Output => Alpha Beta Gamma

  1. True

  2. False

Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

Using braces {} for the block gives it higher precedence, so my_array.collect { |word| word.capitalize } is evaluated first, creating a new array with capitalized words. The puts then outputs Alpha Beta Gamma. This is correct behavior.