Data Types Flashcards

Types of data that can be stored in Ruby

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

true

A

True boolean value

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

false

A

False boolean value

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

nil

A

Represents “nothing” or “no value”

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

strings

A

Stores textual information

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

numbers

A

Stores integers

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

floats

A

Stores decimals

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

arrays

A

Stores a list of things

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

hashes

A

Stores a key=value mapping of things

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