Chapter 2 - Data, Expressions, Variables, and I/O Flashcards

1
Q

What is atomic data?

A

The smallest unit of data that a computer program can define.

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

What is compound data?

A

Data that can be subdivided into smaller pieces of data which are organized in a particular way.
Ex. List

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

What is a data type?

A

Every piece of data, compound or atomic, has a data type.

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

What is a literal value?

A

A number or string written right into the program, that is, literally typed into the programs code, such as 42.

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

What is an expression?

A

Combinations of data and special symbols called operators.

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

What is an operator?

A

Used to write expressions that compute new values from existing pieces of data.

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

What is an operand?

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

What is a variable?

A

A way of giving names to data.

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

What advantages do variables have over literals?

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