Ruby On Rails Online Test

Topics covered

Ruby Basics, Control Flow in Ruby, Looping with Ruby, Array and Hashes, Blocks and Sorting, Hashes and Symbols, Blocks, Procs, and Lambdas, Object-Oriented Programming , Modules and Mixins, Working with Files, Metaprogramming, Controllers, Models

  • MAQ (Multiple Answer Question)
  • MCQ (Multiple Choice Question)
  • Descriptive Question
  • White Board Simulator
  • Coding Simulator
  • Audio Question
  • Video Question
  • Case Study Question

Ruby on Rails Online Test is created & validated by our global subject matter experts (SME)s to assess the Ruby programming skills of  ROR developer on Rails - as per Industry Standards.

Ruby on Rails (RoR) is an open-source web application framework written in Ruby, an object-oriented programming language. Rails is a model–view–controller ( MVC ) framework, providing default structures for a database, a web service and web pages. It encourages and facilitates the use of web standards such as XML or JSON for data transfer and HTML, CSS, and JavaScript for display and user interfacing. In addition to MVC, Rails emphasizes on convention over configuration (CoC), don't repeat yourself (DRY) and the active record pattern. Ruby is an open source, dynamic programming language that supports multiple programming paradigms.

The Ruby on Rails programming test helps recruiters & hiring managers to validate skills of the candidates related to Ruby programming on Rails framework before hiring.

Online Ruby on Rails test contains questions on following Topics:

  • Ruby Basics

  • Control Flow in Ruby

  • Looping with Ruby

  • Array and Hashes

  • Blocks and Sorting

  • Hashes and Symbols

  • Blocks, Procs, and Lambdas

  • Object-Oriented Programming 

  • Modules and Mixins

  • Working with Files

  • Metaprogramming 

  • Controllers

  • Models

Screen under-qualified candidates using our scientifically designed Ruby on Rails knowledge test & spend the time interviewing only relevant candidates.

Our hiring analytics will be generated instantly which gives you a detailed analysis of technical skills related strengths & weaknesses of the candidates. It will help you in making better hiring decisions.

This pre-employment test is useful for hiring:
  • RoR Developer (2-4 yrs of experience)
  • RoR Programmer
  • Ruby on Rails Application Developer

Test details:

Ruby on Rails coding test enables employers to identify & hire potential ROR developers. Therefore, an emphasis is laid upon evaluating the knowledge of applied skills gained through real work experience rather than theoretical knowledge.

The Ruby on Rails test contains MCQ's (Multiple Choice Questions), MAQ's (Multiple Answer Questions), Fill in the Blank, Descriptive, True or False.

Test Duration: 30 minutes
No. of Questions: 30

The Ruby on Rails online test contains a combination of application and theory questions that helps you to evaluate technical as well as practical skills of candidates.

Ruby on Rails Test

Question #1 of 5

To randomize the order of entries in an Array, use the _______ method.

    • sample

    • shuffle

    • random

    • sort

    • scramble

Question #2 of 5

Determine the value of the variable x after the execution of the following code. x = [1,2,3] x.pop until x.empty? x.push(4) while x.empty?

    • [1]

    • [1,2,3,4]

    • [4]

    • [1,2,3]

Question #3 of 5

How is it possible to refactor this class correctly?
class NullOrder
  def price_euro
  def price_usd

Note: There are multiple correct answers to this question.

    • class NullOrder
      def price_euro
      alias price_usd price_euro

    • class NullOrder
      def price

    • class NullOrder
      def method_missing(m, *args, &block)
      m.to_s =~ /euro|usd/ ? 0.0 : super

    • class NullOrder
      def method_missing(m, *args, &block)
      m.to_s =~ /price_/ ? 0.0 : super

Question #4 of 5

Which return values are correct for Bar class?
class Bar
  def initialize(*args)
    @args = args
    if args.size == 3
  def foo
    @total = @args.inject(:+)
  def calculate
    total = 0
    @args.each { |el| total += el if el % 2 == 0 }
    @total = total
  def total

Note: There are multiple correct answers to this question.

    • bar =,2,3) # => 6

    • bar =,2,3,4,5) # => 6

    • bar =,2,3,1) # => 3

    • bar =,2,3) # => 3

Question #5 of 5

How can you add a class 'contacts' for form_tag in rails view?

    • <%= form_tag root_path, class: 'form-inline' do %>
          <%= text_field_tag :email %>
        <% end %>

    • <%= form_tag root_path, html: { class: 'form-inline' } do %>
          <%= text_field_tag :email %>
        <% end %>

    • <%= form_tag class: 'form-inline', root_path do %>
          <%= text_field_tag :email %>
        <% end %>

    • <%= form_tag html: { class: 'form-inline' }, root_path do %>
          <%= text_field_tag :email %>
        <% end %>

Candidate Name: David Messi Test Date: 28-May-2014
Test Name: Ruby on Rails Test Test Start Time: 13.30

Score: 27 Out Of 30

Percentage: 90

Result: PASS

passing score image
Section Name FAIL PASS
Ruby on Rails
Score: 27/30
Strength Ruby on Rails
Weakness -
* Note: If score <= 40 then its a Weakness. If score >= 80 then its a Strength.
10 20 30 40 50 60 70 80 90 100%
Tolerable Limit Not acceptable
Window Violation: 0 | Time Violation: 0 secs
Gender : Male Phone Number : +1-541-754-3010
Total Experience (Years) : 3 Total Experience (Months) : 5
Skill Set : Ruby on Rails Current Employer : Interview Mocha
Current Job Title : Solution Architect Current Salary : 600.00
Expected Salary : 1000000.00 Current Location : Chicago

Sign up for a free trial today

Get your free trial and test up to 10 candidates. No strings attached. No credit card required.


Schedule a Demo

How Interview Mocha works?

  • Add this test to your account

  • Invite candidates to take this test online

  • Candidates take the test

  • View and share actionable test reports

Trusted by leading brands worldwide

  • altran
  • credit suisse
  • sephora
  • nielsen
  • capgemini
  • hexaware
Why hiring managers and recruiters across the globe love Interview Mocha
  • Largest number of ready pre-employment skill tests
  • Relevant test compositions and quality questions designed by Subject Matter Experts (IM SME)
  • Fastest custom test creation DNA
  • World’s most super easy skill assessment platform
  • High level of platform security implementation
  • Friendly and quick customer support
  • Ready to listen and implement your feedback, we are all ears
  • Affordable pricing

Sign up for a free trial today

Get your free trial and test up to 10 candidates. No strings attached. No credit card required.


Schedule a Demo