Ruby ( Back End ) Flashcards

1
Q

What are the 3 ruby data types ?

A

• Numeric = numbers
• String = “ learning to code is fun”
• Boolean = true or false ( without “” )

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

What should I use to make a mathematical calculation ?

A

puts my_addition = 76+55

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

What are the two data structures used in ruby ?

A

Array & Hash
Array = [ used like this ]

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

What is the signal to use to make a comment in Ruby ?

A

#

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