Chapter 3 Flashcards
Snarled, unstructured program logic
Spaghetti code
Programs that do not follow the rules of structured logic.
Unstructured program
Program that do follow the rules of structured logic.
Structured programs
a basic unit of programming logic; each structure is a sequence, selection, or loop.
Structure
This contains a series of steps,executed in order. this can contain a number of tasks, but there is no option to branch off and skip any of the tasks.
Sequence Structure
Contains a question, and depending on the answer, takes one of the two courses of action before continuing with the next task.
Selection or Decision Sturcture
Designates the end of a pseudocode structure
End Structure Statement
Another name for selection/decision statement.
If-then-else
Define one action to be taken when the tested condition is true and another action to be taken when it is false.
Dual-Alternative selections (Defenitive Ifs)
Take action on just one branch of the decision.
Single-Alternative selections (Single Ifs)
The branch of a decision in which no action is taken.
Null Case
Continues to repeat actions while a test condition remains true.
Loop Structure
The set of actions that occur within a loop.
Loop Body
Another name for a loop structure.
Repetition (Iteration)
A process continues while some conditions continues to be true.
While do (While Loop)