Grade 8 Computer Science · Dictionaries
Summary practice — dictionaries
Ten exercises over the key, the speed, the conditions, going over and nesting.
A pinpoint lookup or a pass over everything
A key and a value, a lookup that does not depend on size, unique and fixed keys, three ways to go over a dictionary, and nested structures. These exercises check whether you can now tell, in every question, where the key leads.
The unit gave a name to every value, and all of its bugs sit in the key and not in the dictionary.
| Lesson | The central idea |
|---|---|
| 1 | Access by name, and no meaningful order |
| 2 | A lookup that does not depend on the size |
| 3 | A key must be unique and fixed |
| 4 | Three ways of going over, chosen by need |
| 5 | A nested structure is read layer by layer |