Activity 01
Mock Trial: The Case of the Broken Loop
Present a piece of code that doesn't work as intended. Students act as 'Code Lawyers' to argue why a specific line is the 'guilty' bug and propose a fix to the 'Judge' (teacher).
Justify why using a loop is better than writing the same command multiple times.
Facilitation TipDuring Mock Trial: The Case of the Broken Loop, assign roles clearly and require students to present their findings to the class using the success criteria as evidence.
What to look forPresent students with a short algorithm that contains repetition, such as drawing a square. Ask them to identify the repeating part and rewrite it using a count-controlled loop. Observe their ability to correctly set the loop counter and the number of iterations.