CISP300 Ch2 Definitions
Terms
undefined, object
copy deck
- Stacking
- Attaching structures end-to-end.
- Repition and Iteration
- These are alternate names for a loop structure.
- Case Structure
- You can use this when there are several distinct possible values for a single variable you are testing, and each requires a different course of action.
- If-Than-Else
- Another name for a selection structure.
- While Loop
- This is a loop in which a process continues while some condition continues to be true.
- Null case
- This is the branch of a decision in which no action is taken.
- Nesting
- Placing a structure within another structure.
- Sequence Structure
- A process where you perform an action or task, and than you perform the next action, in order. A sequence can contain any nyumber of tasks, but there is no chance to branch off and skip any of the tasks.
- Structure
- A basic unit of programming logic; each structure is a sequence, selection, or loop.
- Block
- A group of statements that execute as a single unit.
- Priming Read
- The statement that reads the first input data record prior to starting a structured loop.
- Single-Alternative ifs
- These take action on just one branch of decision.
- Duel-Alternative ifs
- These define one action to be taken when the testing condition is true, and another action to be taken when it is false.
- Selection or Decision, Structure
- With this you ask a question, and depending on the answer, you take one of two courses of action. Than, no matter which path you follow, you continue with the next task.
- Loop Structure
- With this, you continure to repeat actions based on the answer to a question.
- Spaghetti Code
- Snarled, unstructured program logic.