Ruby Basics Flashcards

You may prefer our related Brainscape-certified flashcards:
1
Q

Is Ruby purely OOP Language? Why?

A

Ruby is purely object oriented programming language. Each and every value is an object. Every object has a class and every class has a super class. Every code has their properties and actions. Ruby is influenced with Smalltalk language. Rules applying to objects applies to the entire Ruby.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What are the Primitive datatypes in Ruby?

A

There are no primitive data types in Ruby. Every value is an object, even literals are turned into objects:

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What type of Inheritance Ruby will support?

A
Single class inheritance.
Ruby does not have multiple inheritance. Ruby has something similar though: mixins.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Who are the authors of Ruby and Rails?

A

Ruby - Yukihiro Matsumoto

Rails - David Heinemeier Hansson

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Why Ruby is known as a language of flexibility?

A

Ruby is known as a language of flexibility because it facilitates its author to alter the programming elements. Some specific parts of the language can be removed or redefined. Ruby does not restrict the user.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly