Data Types Flashcards
1
Q
What ways can you store -1242?
A
String, Float, Integer
2
Q
How can you store “G”?
A
String, Character
3
Q
How is a variable with no value stored as?
A
Null
4
Q
What is stored only as a real or float variable?
A
Numbers with decimal values
5
Q
What is “neverGonnaGiveYouUp” stored as?
A
String
6
Q
When is a char used?
A
For only one single character
7
Q
What can 0 be stored as?
A
String, Float, Char, Integer
8
Q
What can boolean store?
A
True or False
9
Q
How many bytes does Character, String, Integer, and Float use?
A
4 bytes for each
10
Q
How many bytes does a boolean use?
A
1 bit