Sequence
One of three fundamental programming constructs where instructions execute in order from first to last without branching or repetition. Sequence provides the basic control flow for simple algorithms where all steps must execute exactly once. The order of instructions matters critically, as later instructions may depend on results from earlier ones. Sequence forms the foundation upon which selection and iteration constructs build.
Real World
An ATM follows a strict sequence: authenticate the user, check the balance, dispense cash, then update the account — reversing any two steps would cause errors or security flaws.
Exam Focus
In trace table questions, execute each line top-to-bottom — marks are lost when students skip ahead or reorder steps.
How well did you know this?