Activity 01
Peer Teaching: Code Tracing
One student writes a short snippet of code with a loop and a conditional. The other student must 'act out' the code, keeping track of the variable values on a whiteboard as they go through each step.
Explain how different data types influence the precision and memory usage of a program.
Facilitation TipDuring Code Tracing, have students physically point to each line of code as they explain what happens next to reinforce sequential thinking.
What to look forPresent students with short code snippets. Ask them to identify the data type of each variable and predict the output of the code. For example: 'int age = 16; string name = "Alex"; bool isStudent = true; What is the data type of 'age' and 'name'?'