1/19
Name | Mastery | Learn | Test | Matching | Spaced |
---|
No study sessions yet.
Snarled program logic is called ___ code. (3.1)
spaghetti
The three structures of structured programming are ___. (3.2)
sequence, selection, and loop
A sequence structure can contain ___. (3.2)
any number of tasks
Which of the following is not another term for a selection structure? (3.2)
loop structure
A ____ expression has one of two values, often expressed as true or false. (3.2)
Boolean
Placing a structure within another structure is called ___ structure.
nesting
Attaching structures end to end is called ___. (3.2)
stacking
When an action is required if condition is true, but no action is needed if it is false, you use a ___. (3.2)
single-alternative selection
To take action repeatedly as long as a condition remains true, you use a ___. (3.2)
loop
When you must perform one action when a condition is true and a different one when it is false, and then the program continues, you use a ___. (3.2)
dual-alternative selection
Which of the following attributes do all three basic structures share? (3.2)
They all have one entry and one exit point.
Which true of stacking structures? (3.2)
When you stack structures, you cannot nest them in the same programs.
When input data in a loop within a program, the input statement that precedes the loop ___. (3.3)
is called a priming input
A group of statements that executes as a unit is a ___. (3.2)
block
Placing a decision within a loop is ___. (3.2)
an acceptable structured programming technique
In a selection structure, the structure-controlling condition is ___. (3.2)
tested once at the beginning of the structure
When a loop executes, the structure-controlling condition is ___. (3.2)
tested either before or after the loop body executes
Which of the following is not a reason for enforcing structure rules in computer programs? (3.4)
Structured programs usually are shorter than unstructured ones.
Which of the following is not a benefit of modularizing programs. (3.4)
If you use modules, you can ignore the rules of structures.
Which of the following is true of structured logic? (3.6)
Any task can be described using some combination of the three structures: sequence, selection, and loop.