What does sequence mean?
Instructions carried out one after another, in the order they are written. One of the three basic programming constructs, with selection and iteration.
In a lesson
The computer reads the first instruction and carries it out. Then the second. Then the third. It never skips ahead and it never goes back on its own. This is called sequence. Predict what this program prints before you run it, then run it to check:
Learn it
- Taught in F1.1 What a program is Programming basics, GCSE
Used in
- F1.10 Project: ask and drive
- F3.3 Lists: one-dimensional arrays
- F5.3 Pseudocode and the exam reference language
- F10.5 Addresses and packets
- F10.6 The internet, DNS and the cloud
- F10.9 Project: reliable delivery
- F13.9 Project: the revision robot
- A1.1 Data types and programming constructs
- A1.2 Operations, strings and random numbers
- A1.6 Programming paradigms and procedural programming
and 22 more lessons.
Do the lesson in the simulator