Computing · Year 2

Programming with Blocks

💻 ComputingEasy9 min
0
0 of 5

🤖 you are a . Your you : , , . You them in ! That is what a does. we to using .

📦 In a , each is a . You the like to a an what to do.

The of your a lot. This is called a . If you put the in the , the does the thing. of it like go on before ! 🧦👟

🧩 🐱 Scratch Cat wants to walk to a star and celebrate. Put these blocks in the correct order!

  1. Play celebration sound 🎉
  2. Move 10 steps forward
  3. Turn 90 degrees right
  4. Move 10 steps forward

we want a to do the thing many . We could add of but that is ! A does the again and again. One can ten . That makes your and . ✨

Without Repeat BlockWith Repeat Block
Move 50 stepsRepeat 4 times:
Turn 90 degrees Move 50 steps
Move 50 steps Turn 90 degrees
Turn 90 degrees(only 1 block needed!)
Move 50 steps — and so on...Program is much shorter 🎉
Without repeat vs with repeat — drawing a square 🟦

🗂️ 🗂️ Sort each example. Does it need a repeat block, or is a simple sequence enough?

  • Jump up and down 8 times

  • Say hello, then wave once

  • Spin around 5 times

  • Move forward, then stop

  • Flash a light 10 times

🐛 A in a is called a bug. and is called . Even their ! your and ask: did it do what I ?

To , run your and . Did the go the way? your . Did it too many ? the in your . and is a and fun of ! 🔧

🔗 🔍 Match each bug to the right fix!

  • Sprite turns left instead of right

  • Sprite jumps 20 times instead of 5

  • Sprite moves before the game starts

  • Sprite stops halfway through

🌟 You now know big : in the ; using to ; and and your . These are use every day!

Quiz time! 📝

Programming with Blocks — Quick Quiz 🧩

Question 1 of 5

Tip: log in to save your score and track progress.

What is a in a ?

Finished?

Log in to mark this lesson complete and track your progress.