chapter 4 Flashcards
Action Statement
Statement following the expression in an “if” statement
associativity
order in which operators are grouped and evaluated
compound statement
- block of statements
- consists of a sequence of statements enclosed in curly braces { }
conditional expression
an expression that uses a conditional operator
conditional operator
- ternary operator written as “?:”
- the 3 arguments explain what the condition is, what the result will be if the condition is true, and the result if the condition is false
decision maker
the expression in an “if” statement which determines whether to execute the statement that follows
logical (boolean) expression
expression that has a value of either true or false
logical (boolean) operators
operators that enable you to combine logical expressions
logical (boolean) values
“true” and “false”
nested
when one control statement is located within another
pairing an “else” with an “if”
the rule stating that an “else” statement is associated with he most recent incomplete “if” statement
pseudocode (pseudo)
informal mixture of C++ and ordinary language used to design an outline of a logical solution to a problem
relational operator
operator used to make comparisons in a program
selector
expression used in a “switch” statement that determines which case will be executed
short-circuit evaluation
process in which the computer evaluates a logical expression from left to right and stops as soon as the value of the expression is known