Chapter 3-1 Flashcards

1
Q

Variables

A

are containers for storing data values.

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

data type

A

variable is assigned with

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

data types

A

String
int
float
char
boolean

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

stores text, such as “Hello”. String values are surrounded by double quotes

A

String

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

stores integers (whole numbers), without decimals, such as 123 or -123

A

int

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

stores floating point numbers, with decimals, such as 19.99 or -19.99

A

float

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

stores single characters, such as ‘a’ or ‘B’. Char values are surrounded by single quotes

A

char

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q
  • stores values with two states: true or false
A

boolean

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