Intro To Expressions Flashcards

1
Q

Expression

A

Combination of literals, variables, operators and explicit function calls that produce a single output value

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

Evaluation

A

Process where each of the terms in the expression is evaluated until a single value remains

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

Evaluation of literals, variables and function calls

A

Literals evaluate their own values
Variables- values of variable
Function calls-whatever value the function returns

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

Evaluation of expressions

A

As part of the statement, never alone, don’t end in semicolon

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

Expression statement

A

Statement that consists of an expression followed by a semicolon

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

Statements vs expressions

A

Statements-when program performs action

Expressions-the program is calculating a value

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