NEW Explore the Scratch Block Dictionary, tutorials, textbook, and classroom guides

Start learning →

Practice Drills Set 3: Variables & Logical Operators

📌 What you will learn

Trace multi-variable loops, variable swaps, and AND/OR/NOT truth tables.

Lesson goal & core concept

Use paper trace tables to solve complex variable updates cleanly.

Write one row per loop iteration: i | sum | condition.

Step-by-step practice

Work through these steps in the Scratch editor, predicting each result before clicking the green flag.

  • Trace summing odd numbers from 1 to 5: 1 + 3 + 5 = 9.
  • Trace swapping A=5 and B=9 using temp: temp=5, A=9, B=5.
  • Evaluate <<(80 > 79)> and <(0 = 0)>> → TRUE.

Mini challenge & next steps

Modify the odd-number sum loop to add only even numbers from 2 to 10.

Scratch Learning Textbook Home Return to the full 4-stage curriculum overview. Learn more → Scratch Block Dictionary Look up any block used in this chapter. Learn more →

FAQ

How long should I spend on "Practice Drills Set 3: Variables & Logical Operators"?

Aim for 15–20 minutes: read the concept, test the small example, modify one value to see what changes, and try the mini challenge.

This guide is provided for educational purposes. Scratch screens and terms may change over time, so please check the official Scratch website as well.