Data Types Flashcards
(7 cards)
1
Q
What is the size of a byte?
A
1 byte (Range: 0 to 225)
2
Q
What is the size of a short?
A
2 bytes (Range: -32 768 to 32 767)
3
Q
What is the size of a int?
A
4 bytes (Range: -2 147 483 648 to 2 147 483 647)
4
Q
What is the size of a long?
A
8 bytes (Range: -9 223 372 036 854 775 808 to 9 223 372 036 854 775 808)
5
Q
What is the size of a float?
A
4 bytes
6
Q
What is the size of a double?
A
8 bytes
7
Q
What is the size of a decimal?
A
16 bytes