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
    0.0
  end
  def price_usd
    0.0
  end
end 

Note: There are multiple correct answers to this question.

    • class NullOrder
      def price_euro
      0.0
      end
      alias price_usd price_euro
      end

    • class NullOrder
      def price
      0.0
      end
      end

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

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

Question #4 of 5

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

Note: There are multiple correct answers to this question.

    • bar = Bar.new(1,2,3)
      bar.total # => 6

    • bar = Bar.new(1,2,3,4,5)
      bar.total # => 6

    • bar = Bar.new(1,2,3,1)
      bar.total # => 3

    • bar = Bar.new(3,2,3)
      bar.total # => 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
Assessment Name
Invited by
Assessment Date
IP Address
Status








24.00 Out of 40.00
Pass
60%
03
23 Minutes

Java EE

9/10

Hibernate

3/10

Oracle PL/SQL

7/10

Analytical Thinking

5/10

Note:If score<= 30% then its a Weakness. If score >=70% then its a Strength.

Strengths

Java EE, Oracle PL/SQL, Analytical Thinking

Weaknesses

Hibernate

Sign up for a free trial today

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

SIGN UP FOR FREE

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.

SIGN UP FOR FREE

Schedule a Demo