w3resource
Ruby Exercises

Ruby Exercise practice with solution

Ruby Programming Language

Ruby is a simple and powerful object-oriented programming language, created by Yukihiro Matsumoto.

Like Perl, Ruby is good at text processing. Like Smalltalk, everything in Ruby is an object, and Ruby has blocks, iterators, meta-classes and other good stuff.

You can use Ruby to write servers, experiment with prototypes, and for everyday programming tasks. As a fully-integrated object-oriented language, Ruby scales well.

The best way we learn anything is by practice and exercise questions. We have started this section for those (beginner to intermediate) who are familiar with Ruby.

Hope, these exercises help you to improve your Ruby coding skills. Currently, following sections are available, we are working hard to add more exercises .... Happy Coding!

List of Ruby Exercises

More to Come !

Popularity of Programming Language
Worldwide, Oct 2018 compared to a year ago:

Rank Change Language Share Trend
1 up arrow Python 24.72 % +5.4%
2 down arrow Java 22.01 % -0.7 %
3 up arrow Javascript 8.4% +0.1 %
4 up arrow C# 7.71 % -1.4 %
5 down arrow PHP 7.42 % -1.6 %
6 C/C++ 6.32 % -0.5 %
7 R 4.11 % -0.1 %
8 Objective-C 3.29% -0.9 %
9 Swift 2.69 % -0.8%
10 Matlab 2.08 % -0.3 %
11 Ruby 1.63 % -0.4 %
12 up arrow TypeScript 1.54 % +0.1 %
13 down arrow VBA 1.48% -0.0 %
14 Scala 1.22% -0.2 %
15 Visual Basic 1.14 % -0.2 %
16 up arrow Kotlin 1.04 % +0.3 %
17 up arrow Go 0.96 % +0.3 %
18 down arrow Perl 0.65 % -0.2 %
19 lua 0.39 % +0.0 %
20 up arrow Rust 0.38 % +0.0 %
21 up arrow Haskell 0.31 % -0.0 %
22 down arrow Delphi 0.27% +0.1 %

Source : http://pypl.github.io/PYPL.html

TIOBE Index for October 2018

Oct 2018 Oct 2017 Change Programming Language Ratings Change
1 1 Java 17.801% +5.37%
2 2 C 15.376% +7.00%
3 3 C++ 7.593% +2.59%
4 5 up arrow Python 7.394% +1.83%
5 8 up arrow Visual Basic .NET 5.884% +3.15%
6 4 down arrow C# 3.485% -0.37%
7 7 PHP 2.794% +0.00%
8 6 down arrow JavaScript 2.280% -0.73
9 - up arrow SQL 2.038% +2.04%
10 16 up arrow Swift 1.500% -0.17%
11 13 up arrow MATLAB 1.317% -0.56%
12 20 up arrow Go 1.253% -0.10%
13 9 down arrow Assembly language 1.245% -1.13%
14 15 up arrow R 1.214% -0.47%
15 17 up arrow Objective-C 1.202% -0.31%
16 12 down arrow Perl 1.168% -0.80%
17 11 down arrow Delphi/Object Pascal 1.154% -1.03%
18 10 down arrow Ruby 1.108% -1.22%
19 19 PL/SQL 0.779% -0.63%
20 18 down arrow Visual Basic 0.652% -0.77%

Source : https://www.tiobe.com/tiobe-index/