Section 7.14 Vocabulary
- boolean:
- relational operator:
- An operator that compares two values and produces a
booleanindicating the relationship between them. - conditional statement:
- A statement that uses a condition to determine which statements to execute.
- block:
- A sequence of statements, surrounded by braces, that generally runs as the result of a condition.
- branch:
- One of the alternative blocks after a conditional statement. For example, an
if-elsestatement has two branches. - chaining:
- A way of joining several conditional statements in sequence.
- nesting:
- Putting a conditional statement inside one or both branches of another conditional statement.
- logical operator:
- An operator that combines boolean values and produces a boolean value.
- short circuit:
- A way of evaluating logical operators that evaluates the second operand only if necessary.
- De Morganβs laws:
- Mathematical rules that show how to negate a logical expression.
- flag:
- A variable (usually
boolean) that represents a condition or status. - validate:
- To confirm that an input value is of the correct type and within the expected range.
You have attempted of activities on this page.
