Activity 01
Pairs: Type Prediction Challenge
Provide pairs with 10 code snippets mixing data types, such as '5 + "10"'. Students predict outputs on paper, then run in an online editor like Replit. Discuss surprises and correct uses in 5-minute debrief.
Compare different primitive data types and their appropriate uses.
Facilitation TipFor the Personal Data Type Journal, ask students to include both correct and incorrect attempts to highlight their own evolving understanding.
What to look forProvide students with three scenarios: 1. The number of students in a class. 2. The average rainfall in a month. 3. Whether a user is logged in. Ask them to identify the most appropriate primitive data type for each and write a brief justification for their choice.