Chapter 3 Flashcards
Control Structure
Logical design that controls the order in which a set of statements execute.
Sequence Structure
Set of statements that execute in the order of which they appear.
Decision Structure
Can execute a set of statements only under certain circumstances.
Conditionally Executed
Performed only when a certain condition is true.
Single alternative decision structure
Provides only one alternative path of execution.
If the diamond symbol is true we take the alternative path
T OR F
T
A colon appears after the condition.
T OR F
True
A block
Simply set of statements that belong together as a group.
A relational operator
Determines whether a specific relationship exists between two values.
List the relational operators:
greater than
less than
greater than or equal to
equal to
not equal to
What is the sign of the equality operator?
==
What is the sign of the assignment operator?
=
What is a Boolean expression?
The expressions tested by the if statements.