Grade 7 Computer Science · What a program is
Summary practice — what a program is
Ten exercises over literal execution, order, the algorithm, decomposition and choosing.
Before the first line
A machine that follows word for word, lines that see only what came before them, an algorithm that must work even when there is nothing, and a choice between correct solutions. These exercises check whether you now read code the way the computer does, not the way a person does.
The unit dealt with what happens before a line is written: how the machine reads, and how one thinks about a problem.
| Lesson | The central idea |
|---|---|
| 1 | A computer executes what is written, not what you meant |
| 2 | Every line sees only what is before it |
| 3 | An algorithm: clear, terminating, and solving every case |
| 4 | A good part stands alone, clear interface, testable |
| 5 | Several correct solutions; one chooses by criterion |