Intro To Expressions Flashcards
1
Q
Expression
A
Combination of literals, variables, operators and explicit function calls that produce a single output value
2
Q
Evaluation
A
Process where each of the terms in the expression is evaluated until a single value remains
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
4
Q
Evaluation of expressions
A
As part of the statement, never alone, don’t end in semicolon
5
Q
Expression statement
A
Statement that consists of an expression followed by a semicolon
6
Q
Statements vs expressions
A
Statements-when program performs action
Expressions-the program is calculating a value