Our recent blog post on Operator Precedence Riddles in Ruby discussed how logic can subtley run awry without a solid grasp of operator precedence.
Following up on this I thought it might be good to create a short quiz to allow readers to test themselves on this topic. Have a go at the short quiz below to see how well you know your operator precedence rules in ruby!
I have added a timer to make it a bit more interesting. The timer is set for 30 seconds per question, except for question 10 where I have given you 1 minute. You should be all done in just over 6 minutes. If you struggle with any of the questions you will get a chance to review the correct answers at the end, so stick around for that.
Let us know how you got on in the comments. Good luck!