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.

LessonThe central idea
1Access by name, and no meaningful order
2A lookup that does not depend on the size
3A key must be unique and fixed
4Three ways of going over, chosen by need
5A nested structure is read layer by layer
7 flashcards: a term or question on one side (A dictionary, A lookup in a dictionary, Writing to an existing key, What can serve as a key, Going over pairs, A nested structure, A dictionary smaller than expected) and the explanation on the other. They can be shuffled and marked as known.