DATA TYPES & VARIABLES Flashcards

(7 cards)

1
Q

What is a variable?

A

A named location to store changing data.

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

What is a constant?

A

A value that does not change.

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

Examples of variable names?

A

age, name, quantity.

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

What is a string?

A

A group of characters (e.g., “Hello”).

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

What is a Boolean?

A

A data type with two values: true/false or yes/no.

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

What is Real?

A

Numbers with decimals

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

What is Integer?

A

Whole Numbers

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