Skip to main content

Table 3 Debugging tasks

From: Debugging behaviors of early childhood teacher candidates with or without scaffolding

Debugging tasks

Buggy code

Debugged code example

Task 1: The code should make the robot trace the number, 4, but the code is problematic.

Task 2: The code should make the robot trace the shape of a lollipop as the instructor demonstrates, but the code is problematic.

Task 3: Mr. Johnson wants to use robots to teach students about colors and shapes. He draws two lines: a black line with a red end and a black line with a blue end. He wants the robot to follow the line and trace a square if it senses blue or trace two rectangles if it senses red. But the code does not work right.