Some of your questions are wrong:<p><pre><code> irb(main):001:0> data = [1,2]
=> [1, 2]
irb(main):002:0> total = 10
=> 10
irb(main):003:0> data.each { |x| total += x }
=> [1, 2]
irb(main):004:0> puts total
13
=> nil
</code></pre>
===<p><pre><code> What is proper syntax for a block?
A. { |x| puts x }
B. do |x| puts x end
C. ->(x) { puts x}
D. A & B
E. B & C
F. A & C
</code></pre>
I answered A & B which your quiz says is wrong.<p>You might want to read this and rewrite your quiz...<p><a href="http://awaxman11.github.io/blog/2013/08/05/what-is-the-difference-between-a-block/" rel="nofollow">http://awaxman11.github.io/blog/2013/08/05/what-is-the-diffe...</a>