1/11
Flashcards covering key vocabulary related to Decision Structures from Chapter 3 review questions.
Name | Mastery | Learn | Test | Matching | Spaced |
---|
No study sessions yet.
decision structure
A structure that can execute a set of statements only under certain circumstances.
single alternative decision structure
A structure that provides one alternative path of execution.
Boolean expression
An expression that has a value of either True or False.
relational operators
The symbols >, <, and ==.
dual alternative decision structure
A structure that tests a condition and then takes one path if the condition is true, or another path if the condition is false.
if statement
Used to write a single alternative decision structure.
if-else statement
Used to write a dual alternative decision structure.
logical operators
and, or, and not.
and operator
Used to create a compound Boolean expression that is true only if both of its subexpressions are true.
or operator
Used to create a compound Boolean expression that is true if either of its subexpressions is true.
not operator
Takes a Boolean expression as its operand and reverses its logical value.
flag
A Boolean variable that signals when some condition exists in the program.