wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Ruby

Total questions: 20

Worksheet time: 20mins

Name
Class
Date
1.

Who is the developer of the Ruby programming language?

a)
Bjarne Stroustrup
b)
Yukihiro Matsumoto
c)
James Gosling
2.

Which Ruby framework is particularly popular for building websites?

a)
Ruby on Rails
b)
Sinatra
c)
Hanami
3.

Ruby is particularly popular for building which type of applications?

a)
Web applications
b)
Desktop applications
c)
Mobile applications
4.

When was Ruby officially released to the public?

a)
August 21, 1995
b)

July 15, 1993

c)
September 10, 1996
5.

What was the primary influence on Ruby’s creation by Yukihiro Matsumoto (Matz)?

a)
To create a faster programming language than C++.
b)
To simplify web development for beginners.
c)
The desire to create a more enjoyable and productive programming experience.
6.

Which version of Ruby was released in 1996 and began shaping the foundation of the language?

a)
Ruby 1.5
b)
Ruby 2.0
c)
Ruby 1.0
7.

What major event in Ruby's development occurred in 2004?

a)
The release of Ruby 1.8.
b)
The release of Ruby 2.0.
c)
The introduction of Ruby on Rails.
8.

Which version of Ruby introduced improved Unicode support and a more efficient garbage collector?

a)
Ruby 2.0
b)
Ruby 2.5
c)
Ruby 1.9
9.

What was the main goal of Ruby 3.0, released in the 2020s?

a)
To introduce a new syntax for Ruby.
b)
To enhance security features.
c)
To improve performance and concurrency.
10.

Which of the following data types represents only one bit of information, either true or false, in Ruby?

a)
Boolean
b)
String
c)
Integer
11.

In Ruby, which of the following is true about a String?

a)
A String in Ruby is a primitive data type.
b)
A String in Ruby is an object that represents a sequence of characters.
c)
A String in Ruby can only contain numeric values.
12.

What is the purpose of the puts method in Ruby?

a)
The puts method outputs text to the console with a newline.
b)
The puts method formats strings for database storage.
c)
The puts method reads input from the user.
13.

Which of the following is true about Arrays in Ruby?

a)
Arrays in Ruby can only hold strings.
b)
Arrays in Ruby have a fixed size and cannot be changed.
c)
Arrays in Ruby can hold multiple data types and are dynamic in size.
14.

Which of the following methods can be used to change the case of a String in Ruby?

a)
uppercase
b)
lowercase
c)
upcase, downcase, capitalize, swapcase
15.

Which of the following is a feature of RubyMine?

a)
Code completion and intelligent code analysis.
b)
Support for multiple programming languages.
c)
Basic text editing features.
16.

Which of the following best describes RubyMine?

a)
RubyMine is a text editor for HTML and CSS.
b)
RubyMine is a database management tool for SQL.
c)
RubyMine is an IDE for Ruby and Ruby on Rails.
17.

Which of the following is a free interactive tutorial designed for beginners to learn Ruby?

a)

RubyMonk

b)
Ruby for Dummies
c)
Learn Ruby Basics
18.

Which resource offers a game-like experience for learning Ruby by programming a warrior to solve challenges?

a)

Ruby Warrior

b)
WarriorCode
c)
RubyQuest
19.

Which of the following would be considered an advanced Ruby project?

a)

To-Do List Application

b)

Online Quiz Application

c)

Personal Finance Manager

20.

Who is the developer of the Ruby programming language?

a)

Bjarne Stroustrup

b)

James Gosling

c)

Yukihiro Matsumoto

d)

Jani Abadiez