Skip to main content
AP CSP course

Topic 1.2 · Interactive concept example

Purpose, events and observable output

  • Purpose versus feature
  • Event-driven execution
  • Input, processing, state and output

Change it · step through · explain

Change an input, predict what will happen, then advance one step. Read why the state changes, reset and experiment. This fixed teaching model does not save progress or award XP.

Ready · Make a prediction

Ready to explore: Purpose, events and observable output
  1. Program purposefind-a-roomWaiting
  2. Input eventclickWaiting
  3. Initial internal count (0–10)2Waiting

Ready to explore: Purpose, events and observable output

Why: Change an input, predict the first effect, then advance one step.

Try this: Change one input or choose another listed case. Predict the effect, reset and compare the states and governing rule.