The Ruby Array class offers some of the most-used methods in the ruby ecosystem. Regardless of your level of experience with the language you have almost certainly used some of these methods in your code. Have a go at the quiz below to see how well you know Ruby arrays.

Introduction

In an earlier blog post we discussed the set operations that are available on Ruby arrays, and when these operations can be useful. These set operations form a small part of the very powerful interface exposed by the Ruby Array class.

In this post we offer a short, 10-question quiz, which can help you to test how well you know the Ruby Array methods. Give it a go and see how well you perform.

References

  1. Original blog post about Set operations on Ruby arrays
  2. All examples used in this post are using Ruby v3.1
  3. Official Ruby Array docs

Comments

  • Submitted by Joel
    over 1 year ago

    The Ruby Arrays quiz is broken. Upon finishing and entering my personal information to send me the score, a blank error is rendered in the popup. No email gets sent, and upon inspecting there is no error message in the html, so I have absolutely no clue what the issue could be.

    • Submitted by Domhnall Murphy
      over 1 year ago

      Hi, sorry for the delay in reply. There was an issue in Safari, owing to Safari ignoring cookies set by the quiz. There have been some changes made in this regard, which I hope will address the problem you have encountered.

Got your own view or feedback? Share it with us below …

×

Subscribe

Join our mailing list to hear when new content is published to the VectorLogic blog.
We promise not to spam you, and you can unsubscribe at any time.