Learning Ruby Chris Pine Flashcards

1
Q

puts 1+2

A

3

same as, puts 3

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

puts

A

puts simply writes onto the screen whatever comes after it

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

integers

A

numbers with out decimal point

5
-205
9999999999999999999999999
0

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

floating point numbers

A

numbers with decimal point

  1. 321
  2. 001
    - 205.3884
  3. 0
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

arithmetic with integers

A

when you do arithmetic with integers, you’ll get integer answers. When your computer can’t get the “right” answer, it always rounds down

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