Ch. 2.12: More about Variable Assignments and Initialization Flashcards

1
Q

What is an assignment statement?

A

A value is stored in a variable.

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

What is an assignment operator?

A

Operators perform operations on data. E.g. “=”

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

What is an operand?

A

Data operators work with. E.g. “unitsSold” and “12”

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

What is an lvalue?

A

A value that appears on the left side of an assignment operator. Something that identifies a place in memory whose contents may be changed.

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

What is an rvalue?

A

The value on the right of the operator. Any expression that has a value.

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

What is initialization?

A

Assigning values to variables.

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