Chapter 3 Flashcards
Logical design that controls order in which set of statements execute
control structure
Set of statements that execute in the order they appear
sequence structure
Specific action(s) performed only if a condition exists
-also known as selection structure
decision structure
In flowchart, diamond represents what
true/false condition that must be tested
Provides only one alternative path of execution
-if condition is not true, exit the structure
single alternative decision structure
Expression tested by if statement to determine if it is true or false
Boolean expression
determines whether a specific relationship exists between two values
-ex: greater than (>)
relational operator
This operator determines whether the two operands are equal to one another
==
This operator determines whether the two operands are not equal
!=
Two possible paths of execution
dual alternative decision structure
Special version of a decision structure
if-elif-else
Operators that can be used to create complex Boolean expressions
logical operators
Deciding the value of a compound Boolean expression after evaluating only one sub expression
short circuit evaluation
References one of two values, True or False
Boolean variable
Variable that signals when some condition exists in a program
Flag