Tenth graders learn the two main kinds of loops — for loops that repeat a known number of times, and while loops that repeat until a condition changes — and how to choose the right one for a task.
Students will be able to…
All loops repeat code — but a FOR loop and a WHILE loop are used in different situations. When do you use each one?
Project this and sort each task by whether a FOR loop or a WHILE loop fits best.
Tap any phase to open the teacher moves and student actions.
All loops repeat — but when do you use FOR vs WHILE?
Students practice.
Students use.
Students modify.
Students conclude.
Aligned to the CSTA K-12 Computer Science Standards and ISTE Standards for Students.
Use control structures including loops.
Design and iterate programs with loops.
Decompose problems into repeated steps.
Computational Thinker.
Preview the three formative checks. Tap “Sample answer” to see what mastery looks like — hide them before you print for students.
Have students write two short tasks — one for a for loop and one for a while loop — and explain why each fits. A printable loops sheet is in the Computer Science library.
Tap a card to flip it, then rate whether you knew it. Built from this lesson’s vocabulary.
A quick self-check with instant feedback, drawn from this lesson’s key terms.
A print-and-go review sheet with a built-in answer key. Tap “Show answer key” to reveal answers, or print the clean version for students.