Primitive Data Types Flashcards

(8 cards)

1
Q

1) byte

= v_________ s_________ i_________

range = -_______ to +_______

A

very small integers
-128 to +127

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

2) short

= s_________ i__________

range (approx) = -__________ to +_____________

A

small integers
-32,000 to + 32,000

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

3) int

= b______ i_________

range (approx) =

A

big integers
- 2.1 billion to +2.1 billion

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

4) long

= v_________ b______ i_________

range (approx) =

A

Very big integers
-2^63 to 2^63

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

5) float

= r_________ n__________

A

real numbers

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

6) double

= v_________ b___________ r____________ n_____________

A

very big real numbers

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

7) char

= un_________ characters in single quotes.

e..g. ‘a’ ‘i’ ‘!’ ‘%’

A

Unicode characters

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

8) boolean

= t_______ or f___________

A

true
false

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