Curriculum

Curriculum

Trace a Decision Inside a Decision

Scenario

The slot is free, but the student has no booking permission.

  1. 1Is the slot free?
  2. 2Does the student have permission?
  3. 3Return declined

Try it yourself

Step through the decisions and find where the request stops.

Reveal the explanation
  1. Is the slot free?

    Yes. Continue to the permission check.

  2. Does the student have permission?

    No. Follow the decline branch.

  3. Return declined

    The free slot alone is insufficient.

Try an occupied slot. The first decision now declines the request before the permission question.

Download shared test cases

Your turn

Trace an occupied slot and then a free slot with permission.

Common mistake Running the inner permission check on a branch that already declined.

Check your work

The first path skips the inner check. The second reaches it and accepts.