Algorithm design: a written set of instructions for tying a bow (step 1, step 2, …) exemplifies which fundamental control structure?
-
ASequence
-
BSelection (decision)
-
CRepetition (loop)
-
DControl (generic umbrella term)
-
ENone of the above
Answer
Correct Answer: Sequence
Explanation
Introduction / Context:Structured programming uses three basic control structures—sequence, selection, and repetition—to express any algorithm. Recognizing the structure in everyday instructions deepens understanding.
Given Data / Assumptions:
- The task is a fixed series of steps with no branching or looping.
- Each step follows the previous one deterministically.
- No conditions or repeated iterations are specified.
Concept / Approach:Sequence executes statements in order. Selection chooses among paths based on a condition. Repetition repeats a block until a condition changes. Tying a bow per an instruction list is classic sequence.
Step-by-Step Solution:
Identify absence of ‘‘if/else’’ decisions (rules out selection).Identify absence of ‘‘repeat until’’ or ‘‘while’’ constructs (rules out repetition).Conclude it is a straight-line sequence of steps.Verification / Alternative check:Flowchart would show a start node, consecutive process boxes, and an end node without decision diamonds or loops.
Why Other Options Are Wrong:Selection and repetition introduce logic not present; ‘‘control’’ is too vague.
Common Pitfalls:Overcomplicating simple procedures by adding unnecessary conditions; keep algorithms minimal yet complete.
Final Answer:Sequence