Ruby Online Test

Test real-world Ruby skills that matter in a world with AI. Protected by AI proctoring.

For jobseekers

Practice your skills and earn a certificate of achievement when you score in the top 25%.

Take a Practice Test

For companies

Screen real Ruby skills, flag human or AI assistance, and interview the right people.

Create a Ruby Screening Test
From $7 per candidate

About the test

The Ruby online test assesses knowledge of programming in the Ruby language. This test requires solving live coding problems in Ruby.

The assessment includes work-sample tasks such as:

  • Serializing to/from JSON to handle web requests.
  • Finding and fixing bugs, and handling exceptions.
  • Extracting data from text using Regex.

A good Ruby developer needs a solid understanding of the Ruby programming language and knowledge of its data structures and language constructs to write robust and maintainable code.

Sample public questions

Easy
15 min
code
Public
Ruby
Hash

Implement a group_by_owners function that:

  • Accepts a hash containing the file owner name for each file name.
  • Returns a hash containing an array of file names for each owner name, in any order.

For example, for hash {'Input.txt' => 'Randy', 'Code.py' => 'Stan', 'Output.txt' => 'Randy'} the group_by_owners function should return {'Randy' => ['Input.txt', 'Output.txt'], 'Stan' => ['Code.py']}.

Hard
10 min
code
Public
Ruby
Closures
Higher Order Function

As part of a data processing pipeline, complete the implementation of the pipeline method:

  • The pipeline method should accept a variable number of functions, and it should return a new function that accepts one parameter arg.
  • The returned function should call the first function in pipeline with the parameter arg, and call the second function with the result of the first function.
  • The returned function should continue calling each function in pipeline in order, following the same pattern, and return the value from the last function.

For example, calling pipeline(-> (x) { x * 3 }, -> (x) { x + 1 }, -> (x) { x / 2 }), and then calling the returned function with 3 should return 5.

For jobseekers: get certified

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

Take a Certification Test

Sample silver certificate

Sunshine Caprio

Java and SQL
TestDome
Certificate
TestDome logo icon

For companies: premium questions

Buy TestDome to access premium questions that can't be practiced.

Create a Ruby Screening Test
From $7 per candidate

Ready to interview?

Use these and other questions from our library with our
Code Interview Platform.

Sample image of the interviews app.

19 more premium Ruby questions

Chain Link, Username, Crop Ratio, Segment, Read Write Execute, Read First Line, Log Patch, Numbers To Text, Students, Date Transform, Language Teacher, Category Tree, Hobbies, String Occurrence, Paragraph, Greeter, Document Store, Shipping, Ranges.

Skills and topics tested

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

For job roles

  • Back-End Developer
  • Ruby Developer
  • Web Developer

Sample candidate report

Need it fast? AI-crafted tests for your job role

TestDome generates custom tests tailored to the specific skills you need for your job role.
Sign up now to try it out and see how AI can streamline your hiring process!

Use AI Test Generator

What others say

Decorative quote

Simple, straight-forward technical testing

TestDome is simple, provides a reasonable (though not extensive) battery of tests to choose from, and doesn't take the candidate an inordinate amount of time. It also simulates working pressure with the time limits.

Jan Opperman, Grindrod Bank

Product reviews

G2 - Crowd Badge
G2 - High Performer - Winter (2025)
Capterra - 4.5 Stars
Capterra - Ease of Use (2025)

Used by

Solve all your skill testing needs

150+ Pre-made tests

From web development and database administration to accounting and MS Excel. See all pre-made tests.

130+ skills

From SQL and Python to Attention to Detail and Logical Reasoning. See all questions to filter by skill.

AI-ready assessments

Test what matters in a world with AI, protected by AI proctoring that flags any assistance.

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

Enterprise-ready technical solutions

Multi-user Account

Support multiple users with shared permissions and role-based access control.

GDPR compliance

TestDome is fully GDPR compliant, see our legal pages .

Single Sign-On (SSO)

Use SSO for easy and secure user authentication for multiple users in your company. Request access.

Data anonymization

Automatic data anonymization after a defined period of time — or on-demand.

Want to know more?

Related Ruby Tests: