Grade 9 Computer Science · Abstraction
Summary practice — abstraction
Ten exercises over the name, the hiding, the leak, the levels and the price.
What you can leave unknown
A name and a promise, what to hide and what to reveal, leaks, levels, and the price of a wrong abstraction. These exercises check whether you already ask of every function what its user needs to know, and what they can leave unknown.
The unit gave a name to the idea that stood behind the previous three years.
| Lesson | The central idea |
|---|---|
| 1 | A name, a promise, and hidden detail |
| 2 | One hides “how”, reveals what affects |
| 3 | Every abstraction leaks; not every leak is worth studying |
| 4 | In each function, one level of abstraction |
| 5 | A wrong abstraction costs more than duplication |