Ruby on Rails Online Test

TestDome skill assessments are used by more than 6,000 companies and 450,000 individual test takers.

Jobseekers: Get a Certificate

Take a Practice Test

Companies: Try First, Pay Later

Sign Up To Use This Test

The (Ruby and) Ruby on Rails online test assesses candidates' knowledge of programming in the Ruby language as well as their knowledge of the Ruby on Rails web application framework.

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 the concepts behind Ruby and have commonly used Ruby on Rails APIs, which makes Ruby on Rails development quite different from desktop or server-side development.

This online test requires candidates to solve coding problems in Ruby and answer questions about the Ruby on Rails web application framework.

Recommended Job Roles
Back-End Developer
Ruby Developer
Ruby on Rails Developer
Web Developer
Sample Candidate Report

Sample Free Questions

Contacts Migration


Ruby on Rails Database migrations Public

Select all statements that are correct after the following migration has been executed:

class ContactsMigration < ActiveRecord::Migration
  def change
    create_table :contacts do |t|
      t.string :name
      t.integer :telephone_number
      t.text :address, null: false

(Select all acceptable answers.)

Employee Search


Ruby on Rails Database abstraction Public

A company database contains the following table, in which id is the primary key:


id name age
1 Steve 21
2 John 44
3 Amy 26
4 Marcus 44

Select all the statements that return only the employee with name "John" (id = 2).

(Select all acceptable answers.)

Merge Names


Ruby Arrays Public

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.

Use Free Questions On a Trial Plan

Premium Questions

The premium question library contains our unique, hand-crafted questions. We offer a refund if you find any of them answered online.

Teacher Route, Document Store, Product Model, Customer Orders, Greeter, Books, Read First Line, Needle, Ranges, Log Patch, Shipping, Read Write Execute, Invoice, Segment, Numbers to Text, Category Tree, Chain Link, Crop Ratio, Date Transform, Hobbies, Paragraph, Products, Username, Language Teacher
Ruby on Rails URL routing Ruby Bug fixing Language Database abstraction Collections Exceptions Stream Strings Ranges Monkey patching Arithmetic Hash Linked list Integer division Regex Arrays Iteration JSON Serialization Sorting Inheritance OOP
Score Distribution
# of candidates
Pricing For Premium Questions