Types of Data Flashcards

Name the data type in Ruby for the listed description

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

True boolean value

A

true

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

False boolean value

A

false

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

Represents “nothing” or “no value”

A

nil

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

Stores textual information

A

strings

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

Stores integers

A

numbers

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

Stores decimals

A

floats

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

Stores a list of things

A

arrays

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

Stores a key=value mapping of things

A

hashes

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