This Ruby Online Test
Separates Good From Bad Hires

Check our public questions below

Solve questions to get feedback or
take a practice test and get a free certificate.

Screen with work-sample questions

Work-samples are the best predictor of work performance. 8,000+ companies use TestDome premium questions.

About the test

The Ruby online test assesses candidates' knowledge of programming in the Ruby language.

It's an ideal test for pre-employment screening. A good Ruby developer should not only be able to solve problems using Ruby as the programming language but also be familiar with Ruby native data structures and language constructs.

This online test requires candidates to solve coding problems in Ruby as well as to find and fix bugs in a Ruby program.

Sample public questions

Easy
10 min
code
Public
Ruby
Arrays

Implement the unique_names method. When passed two arrays of names, it will return an array containing the names that appear in either or both arrays. The returned array should have no duplicates.

For example, calling unique_names(["Ava", "Emma", "Olivia"], ["Olivia", "Sophia", "Emma"]) should return an array containing Ava, Emma, Olivia, and Sophia in any order.

Easy
10 min
code
Public
Ruby
Arithmetic

Implement the function find_roots to find the roots of the quadratic equation: ax2 + bx + c = 0. The function should return an array containing both roots in any order. If the equation has only one solution, the function should return that solution as both elements of the array. The equation will always have at least one solution.

The roots of the quadratic equation can be found with the following formula: A quadratic equation.

For example, find_roots(2, 10, 8) should return [-1, -4] or [-4, -1] as the roots of the equation 2x2 + 10x + 8 = 0 are -1 and -4.

For jobseekers: get certified

Earn a free certificate by achieving top 25% on the Ruby test with public questions.

Take a Certification Test

For companies: premium questions

Buy TestDome to access premium questions that can't be practiced.
Get money back if you find any premium question answered online.

Sign Up to Offer this Test

Skills and topics tested

  • Ruby
  • Bug Fixing
  • Language
  • Ranges
  • Monkey Patching
  • Arithmetic
  • Exceptions
  • Hash
  • Linked List
  • Arrays
  • Iteration
  • Regex
  • Strings
  • JSON
  • Serialization
  • Sorting
  • Inheritance
  • OOP
  • Integer Division
  • Stream

For job roles

  • Back-End Developer
  • Ruby Developer
  • Web Developer

Solve all your skill testing needs

150+ Pre-made tests

From web development and database administration to project management and customer support. See all pre-made tests.

Multi-skills Test

Mix questions for different skills or even custom questions in one test. See an example.

How TestDome works

1

Choose a pre-made test
or create a custom test

2

Invite candidates via
email, URL or your ATS

3

Candidates take
a test remotely

4

Sort candidates and
get individual reports

Want to know more?

Not exactly what you're looking for?

Related Ruby Programming Tests: