Activity 01
Pair Prediction: Buggy Loops
Provide printed code snippets with loops and conditions containing logical errors. Partners predict outputs on paper, discuss possible fixes, then test in a block-based editor like Scratch. Swap roles for a second snippet and compare predictions to actual runs.
Predict what a loop will do before running the code.
Facilitation TipDuring Pair Prediction: Buggy Loops, pair students with a timer so they must commit to a prediction before running code, forcing them to confront discrepancies immediately.
What to look forProvide students with a short program (e.g., 5-10 lines) that has a logical error in a loop. Ask them to write down what they predict the program will output, then run it and record the actual output. Finally, have them write one sentence describing the difference.