Chapter 3-1 Flashcards
1
Q
Variables
A
are containers for storing data values.
2
Q
data type
A
variable is assigned with
3
Q
data types
A
String
int
float
char
boolean
4
Q
stores text, such as “Hello”. String values are surrounded by double quotes
A
String
5
Q
stores integers (whole numbers), without decimals, such as 123 or -123
A
int
6
Q
stores floating point numbers, with decimals, such as 19.99 or -19.99
A
float
7
Q
stores single characters, such as ‘a’ or ‘B’. Char values are surrounded by single quotes
A
char
8
Q
- stores values with two states: true or false
A
boolean