Chapter Three Flashcards
Spaghetti Code
Is snarled, unstructured program logic.
Unstructured Programs
Are programs that do not follow the rules if structured logic.
Structured Programs
Are programs that do follow the rules of structured logic.
Sequence Structure
Contains series of steps executed in order. A sequence can contain any number of tasks but there is no option to branch off skipping any of the tasks.
Selection structure or Decision Structure
Contains a question and depending on the answer takes one of two courses of action before continuing with the next task.
End Structure Statement
Designates the end of a pseudocode Structure.
If then else
Is another name for a dual alternative selection Structure.
Dual alternative ifs or dual alternative selections
Define one action to be taken when the tested condition is true and another action to be taken when it is false
Single alternative ifs or single alternative selections
Take action on just one branch of the Decision.
Null case or bull branch
Is the branch of a Decision in which no action is taken.
Loop Structure
Continues to repeat actions while a test condition remains true.
Loop body
Is the set of actions that occur within a loop.
While loop
Is a Structure that continues to repeat a process while some condition remains true.
Repetition and iteration
Are alternate names for a loop Structure.
While…do loop
Is an alternate name for a while loop.