Curriculum

Curriculum

Look Up a Record by Its Key

Scenario

The booking schedule maps A14 to free and B14 to busy.

Selected choicePick a choice below
Result—

Try it yourself

Predict what the lookup will return for each key.

Reveal the explanation
  1. A14

    Found. This slot is free.

  2. B14

    Found. This slot is busy.

  3. C14

    Missing. The schedule has no record for that key.

Keep missing separate from free. An unknown slot needs its own response.

Your turn

Write a result for one free key, one busy key, and one unknown key.

Common mistake Interpreting a missing schedule record as free.

Check your work

Three results distinguish free, busy, and missing.