Test Your Knowledge on Ruby Programming Language

This quiz consists of 11 questions related to Ruby programming language. Let's see how well you know about Ruby!

published 20 days ago1 response 0
Next »
1/11

Who created Ruby programming language?

Yukihiro Matsumoto
Guido van Rossum
Linus Torvalds
Bjarne Stroustrup
2/11

Which of the following is true about Ruby?

It is a dynamic, reflective, object-oriented programming language
It does not support object-oriented programming
It is a compiled language
It is primarily used for system programming
3/11

What is the symbol used to denote a comment in Ruby?

What is the symbol used to denote a comment in Ruby?
#
//
--
/* */
4/11

Which of the following is a framework built on Ruby?

Which of the following is a framework built on Ruby?
Ruby on Rails
Django
Spring
Express.js
5/11

What does IRB stand for in Ruby?

Interactive Ruby
Internal Ruby Builder
Infinite Ruby Loop
Integrated Ruby Browser
6/11

Which method is used to define a class in Ruby?

Which method is used to define a class in Ruby?
class
def
include
module
7/11

What is the file extension for Ruby files?

What is the file extension for Ruby files?
.rb
.py
.java
.html
8/11

Which symbol is used for string interpolation in Ruby?

Which symbol is used for string interpolation in Ruby?
#
$
&
@
9/11

What is the keyword used for defining a method in Ruby?

What is the keyword used for defining a method in Ruby?
def
function
method
define
10/11

Which of the following is an example of a Ruby gem?

Which of the following is an example of a Ruby gem?
Devise
Angular
React
Vue
11/11

What does the 'puts' method do in Ruby?

Prints output to the console with a new line
Concatenates two strings
Defines a new variable
Invokes a method