Skip to main content
Informatik.uz
Chapter 2. Programming in Scratch

Your First Scratch Project

Scratch is a free environment where programs are built from blocks. We explore its window, make the cat walk and say hello, and draw a square with a repeat block.

Topic 6 of 111 min readUpdated October 27, 2026
All topics (6 of 11)

Scratch is a free programming environment where you build programs by snapping colorful blocks together instead of typing code. It was created by specialists at the Massachusetts Institute of Technology (MIT) for children and teenagers. You can use Scratch in a browser or install it on your computer.

The Scratch window has several parts. The stage shows the result of the project, and the characters, called sprites, move on it. Blocks are grouped into categories such as Motion, Looks, Sound, Events and Control. You drag the blocks you need into the scripts area and snap them together.

For your first project, take the “when green flag clicked” block and attach the “move 10 steps” and “say Hello! for 2 seconds” blocks under it. When you click the green flag, the cat walks forward and says hello. The script runs from top to bottom, block by block, just like a linear algorithm.

Now let us draw a square. Add the Pen extension, place the “pen down” block first, and put “move 100 steps” and “turn 90 degrees” inside a “repeat 4” block. The sprite draws the four sides of a square, because 4 times 90 degrees makes a full turn.

Key takeaways

  • Scratch is a free visual programming environment where programs are built from blocks.
  • Parts of the window: the stage, sprites, the block palette and the scripts area.
  • A script is a sequence of blocks that runs from top to bottom.
  • A repeat block runs the same commands several times without rewriting them.

Practice tasks

  1. Open Scratch and program the cat so that, when the green flag is clicked, it walks 50 steps forward and says “Hello!”.
  2. Build a script that draws a square: put the pen down, repeat 4 times, and each time move 100 steps and turn 90 degrees.
  3. Add a new sprite and a backdrop to the project, program one of the sprites to say your name, and save the project under a name of your own.

Review questions

Test yourself: think first, then reveal the answer.

  1. 1What is the stage used for in Scratch?
    The stage shows the result of the project: the characters, called sprites, move and act there.
  2. 2What shape does the sprite draw if “move 100 steps” and “turn 90 degrees” are placed inside “repeat 4”?
    A square, if the pen is down.
  3. 3In what order does a Scratch script run?
    Block by block, from top to bottom.

0 of 11 topics completed

Sign in to mark
Informatika 6-sinf darsligi muqovasi
In the textbookInformatics — Grade 6