# Control Structures > Eighth graders learn the three building blocks of every program — sequence (steps in order), selection (if/else choices), and repetition (loops). Almost any… **Computer Science** | **Grade 8** *A free lesson plan from K12 Academics. Source page: https://lessonplans.k12academics.com/k12-lesson-g8-cs-control-structures.html* Eighth graders learn the three building blocks of every program — sequence (steps in order), selection (if/else choices), and repetition (loops). Almost any program is built from these three. They check the ideas, then spot each one in code. **Copy link** works with Canvas, Schoology, Moodle and any other LMS — paste it in as a resource or assignment. ## Everything you need before the bell rings ### Learning Objectives Students will be able to… - Name **sequence, selection, repetition**. - Tell them **apart**. - Spot them in **code**. - Combine them. What three building blocks make up nearly every program? Project each one and have students answer about control structures. ## 50 minutes, five moves Tap any phase to open the teacher moves and student actions. ### Hook — Three Blocks Could almost any program be built from just three kinds of steps? #### 👩‍🏫 Teacher Moves - Pose the question. - Share ideas. - Set the goal. #### 🎒 Student Actions - Think. - Share. - Get ready. ### Use — Control Structures Students learn. #### 👩‍🏫 Teacher Moves - Send students to Control Structures. - Note sequence, selection, repetition. - Note nearly all code uses these. #### 🎒 Student Actions - Answer. - Note it. - Note it. ### Modify — Spot Them Students practice. #### 👩‍🏫 Teacher Moves - Find a sequence in code. - Find an if/else. - Find a loop. #### 🎒 Student Actions - Sequence. - Selection. - Loop. ### Create — Create Students apply. #### 👩‍🏫 Teacher Moves - Write steps in sequence. - Add an if/else. - Add a loop. #### 🎒 Student Actions - Sequence. - Select. - Repeat. ### Reflect — Reflect Students close. #### 👩‍🏫 Teacher Moves - What is selection? - What is repetition? - Complete the exit ticket. #### 🎒 Student Actions - Say it. - Say it. - Complete the exit ticket. ## Built to the standards you report on Aligned to the CSTA K-12 Computer Science Standards and the ISTE Standards for Students. Design programs using control structures. Use algorithms with sequence, selection, loops. Test programs that use control structures. Reason about program flow. ## One lesson, every learner ### Multilingual Learners - Sequence/selection/loop cards. - Frame: "a loop repeats ___." - Use simple code examples. ### Support & Access - Use sequence & loop. - Use clear examples. - One structure at a time. ### Stretch & Extend - Nest a loop inside an if. - Trace mixed control flow. - Build a mini program. ### What to gather - 📽️Screen / board - 🧱Structure cards - 💻Control Structures - 📋Code snippets - 📓Notebooks - 🎫Exit-ticket slips ### Key terms - **control structure**: how a program’s steps run - **sequence**: steps in order - **selection**: an if/else choice - **repetition**: a loop - **iteration**: one pass of a loop - **condition**: a true/false test - **branch**: a path the code can take - **flow**: the order code runs in ## Exit Ticket Preview the three formative checks. Tap “Sample answer” to see what mastery looks like — hide them before you print for students. ### Reflect: control structures. Have students spot sequence, selection, and repetition in code. A printable code-snippet sheet is in the CS library. ## Check your understanding **1. What does “control structure” mean?** - how a program’s steps run *(correct)* - an if/else choice - one pass of a loop - a path the code can take “control structure” means: how a program’s steps run **2. Which word means: “steps in order”?** - sequence *(correct)* - branch - iteration - flow “sequence” means: steps in order **3. What does “selection” mean?** - how a program’s steps run - a loop - an if/else choice *(correct)* - a path the code can take “selection” means: an if/else choice **4. Which word means: “a loop”?** - condition - repetition *(correct)* - control structure - selection “repetition” means: a loop **5. What does “iteration” mean?** - an if/else choice - one pass of a loop *(correct)* - a path the code can take - a true/false test “iteration” means: one pass of a loop **6. Which word means: “a true/false test”?** - condition *(correct)* - selection - sequence - branch “condition” means: a true/false test ## Printable worksheet --- Full lesson page: https://lessonplans.k12academics.com/k12-lesson-g8-cs-control-structures.html All lessons: https://lessonplans.k12academics.com/