Activity 01
Role Play: Human Event Queue
Assign students roles as 'event triggers' (button clicks, keypresses) and 'handlers' (functions). The class physically acts out a multi-step interaction, with the teacher narrating state. Students see firsthand how out-of-order events break program flow.
Explain how the order of events affects program behavior.
Facilitation TipDuring the Human Event Queue, pause after each role to ask students to point to the queue and explain why the next person moves up, reinforcing the FIFO principle.
What to look forPresent students with a short code snippet involving two sequential user inputs (e.g., asking for a name, then an age). Ask them to predict the output if the inputs are given in the specified order, and then predict the output if the order were reversed. Have them justify their predictions.