Types of Data Flashcards
Name the data type in Ruby for the listed description
1
Q
True boolean value
A
true
2
Q
False boolean value
A
false
3
Q
Represents “nothing” or “no value”
A
nil
4
Q
Stores textual information
A
strings
5
Q
Stores integers
A
numbers
6
Q
Stores decimals
A
floats
7
Q
Stores a list of things
A
arrays
8
Q
Stores a key=value mapping of things
A
hashes