w3resource

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, Jul 2020 compared to a year ago:

Rank Change Language Share Trend
1 Python 31.73 % +3.9 %
2 Java 17.13 % -2.7 %
3 Javascript 7.98 % -0.3 %
4 C# 6.67 % -0.6 %
5 up arrow C/C++ 5.93 % +0.1 %
6 down arrow PHP 5.64 % -1.1 %
7 R 4.14 % +0.3 %
8 Objective-C 2.61 % -0.1 %
9 Swift 2.29 % -0.1 %
10 up arrow TypeScript 1.91% +0.2 %
11 down arrow Matlab 1.74 % -0.1 %
12 up arrow Kotlin 1.62 % +0.2 %
13 up arrow Go 1.37 % +0.2 %
14 VBA 1.27 % -0.0 %
15 down arrow Ruby 1.26 % -0.1 %
16 Scala 0.99 % -0.1 %
17 Visual Basic 0.83 % -0.2 %
18 up arrow Rust 0.81 % +0.3 %
19 up arrow Dart 0.52 % +0.2 %
20 up arrow Ada 0.47 % +0.1 %
21 up arrow Lua 0.46 % +0.1 %
22 down arrow Abap 0.46 % -0.1 %
23 down arrow Groovy 0.43 % -0.1 %
24 down arrow Perl 0.42 % -0.2 %
25   Cobol 0.41 % +0.1 %
26 up arrow Julia 0.37 % +0.1 %
27 down arrow Haskell 0.29 % +0.0 %
28 down arrow Delphi 0.25 % -0.0 %

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

TIOBE Index for July 2020

Jul 2020 Jul 2019 Change Programming Language Ratings Change
1 2 up arrow C 16.45% +2.24%
2 1 down arrow Java 15.10% +0.04%
3 3 Python 9.09% -0.17%
4 4 C++ 6.21% -0.49%
5 5 C# 5.25% +0.88%
6 6 Visual Basic 5.23% +1.03%
7 7 JavaScript 2.48% +0.18%
8 20 up arrow R 2.41% +1.57%
9 8 down arrow PHP 1.90% -0.27%
10 13 up arrow Swift 1.43% +0.31%
11 9 down arrow SQL 1.40% -0.58%
12 16 up arrow Go 1.21% +0.19%
13 12 down arrow Assembly language 0.94% -0.45%
14 19 up arrow Perl 0.87% -0.04%
15 14 down arrow MATLAB 0.84% -0.24%
16 11 down arrow Ruby 0.81% -0.83%
17 30 up arrow Scratch 0.72% +0.35%
18 33 up arrow Rust 0.70% +0.36%
19 23 up arrow PL/SQL 0.68% -0.01%
20 17 down arrow Classic Visual Basic 0.66% -0.35%

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