Data Types Flashcards

1
Q

What ways can you store -1242?

A

String, Float, Integer

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

How can you store “G”?

A

String, Character

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

How is a variable with no value stored as?

A

Null

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

What is stored only as a real or float variable?

A

Numbers with decimal values

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

What is “neverGonnaGiveYouUp” stored as?

A

String

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

When is a char used?

A

For only one single character

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

What can 0 be stored as?

A

String, Float, Char, Integer

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

What can boolean store?

A

True or False

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

How many bytes does Character, String, Integer, and Float use?

A

4 bytes for each

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

How many bytes does a boolean use?

A

1 bit

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