Skip to main content

Section 7.13 Vocabulary

boolean:
A data type with only two possible values, true and false .
relational operator:
An operator that compares two values and produces a boolean indicating 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-else statement 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.