ICSE Class 5 Computer Studies
This lesson will give students a brief introduction to Scratch programming. I am using Scratch3 Desktop software on Windows computer. The lesson is created according to ICSE syllabus for Class 5th.
Introduction to Scratch Software
Open the Scratch
As you can see in the above image. The Scratch Screen is divided into several sections. The leftmost area is called “Block Palette”. It contains color-coded block categories. When you click on one of these colored dots, the blocks in that category appear in the right column.
The middle portion is where all your code will reside. This is the area for creating scripts for you.
The upper-right area is called the stage area. It will house all the sprites in your project, And this is where all the action of your project can be previewed. Below the stage there is sprite-info pane. You will see smaller images of the sprites that you add in the stage area.
Components of the Scratch 3 Editor
Stage and Sprite
Sprite info pane
This is the area below the stage. This is where you will find smaller images of the sprites you have added in the stage area.
Blocks
There are different shapes of these blocks. They are called Hat blocks, stack blocks, reporter blocks, Cap blocks etc

The Green Flag and the Stop signs
The Script Area
The middle portion of the Scratch 3 editor is used as the script area. You can drag the code from the “Code palette” into this area and create scripts. You can also drag a code block from this area to the left pane so that you can remove or delete that code block.
Adding a sprite
You can add new (images) sprites in your project. When you take the mouse pointer on the cat-head icon in the sprite-info pane, you will see a menu pop up. If you click on the magnifying glass icon, it will open a new page in the Scratch library of images, where you will be able to choose any image you like.
The brush icon called paint open an image editor, where you can draw an image to add it in your project.
Changing a backdrop
Add Extension
Saving a project
When you have done some work in your new scratch project, you can save it.
To do that Click on File menu in the Toolbar and choose “Save to your computer”
It will show the folder on your computer. You need to select here the right folder where you want to save your scratch project. You should remember the folder name, otherwise you will find it difficult to find your scratch project on your computer. You need to give a name to your project. Once it is saved, it will have an extension .sb3 , That is the file extension of the Scratch 3 editor. If you need to save your file again after some time you can select the previous file name again and overwrite it, or you can give a new name such as myproject-v1, myproject-v2 etc. Scratch offline editor does not save your file automatically. You need to save it yourself each time.
Opening an existing project
Closing a project
You can close the editor by clicking on the x sign at the top right corner of the editor. That will show you this dialog box. If you have not saved your project then you canselect to Stay, then save the project. If you have already saved your project then select to Leave. That will close the Scratch Editor.
Block Categories in Scratch
Motion Blocks
The blocks that can be arranged one below the other are known as Stack blocks. There are 15 such blocks in the Motion category.

The blocks that give certain information into the script are called “Reporter blocks”. There are 3 reporter blocks in the Motion category.
Looks Blocks
The Looks category blocks are color-coded Purple. These blocks are used to control a sprite’s appearance.
There are 17 Stack blocks and three Reporter blocks in this category.
Sound Blocks
Music Blocks
If you click on the instrument name, you will see a list of dozens of musical instruments to choose from, and you can select the node and beat value for that instrument to play.
Control Blocks
Commonly used blocks in Scratch
Move, Turn, Say, Think, Change-color effect, Play-sound, Play-drum, Wait, Forever.
Move block – This block is found in the Motion category. It will move the sprite a number of steps in the current direction. The value is 10 when you add this block. You can type in any number in the box. You can make the sprite move in the opposite direction if you type a negative number.
Turn – This block is found in the Motion category. There are two types of turn blocks, Clockwise and Anti-clockwise. When you add these blocks, there is 15 written in it. It will turn the sprite 15 degrees. You can type any number in it (0 to 360).
Say – This block This block is found in the Looks category. It will add text in a speech bubble. When you add this block, there is “Hello” written in there. You can type anything you like in the box.
Think – This block This block is also found in the Looks category. It is similar to the Say block, except, it is not addressed to anyone. You can use this block, if you want to show that your sprite character is thinking something. It is useful if you are creating a story using scratch.
Change Effect by -
This block This block is also found in the Looks category.
You will find a list of 7 different effect to choose from. The already written value ids 25.
You can type a different number ( from 0 to 100 or -100)
You can change the color, brightness and visibility of the sprite. You can also make some visual effects such as fisheye, whirl, pixelate and mosaic.
Play sound -
You can type a different number ( from 0 to 100 or -100)
You can change the color, brightness and visibility of the sprite. You can also make some visual effects such as fisheye, whirl, pixelate and mosaic.
Play sound -
This block is found in the Sound category. When you add any sprite, and then add this block, you will see one or two sounds that are suitable for the sprite. You can additionally add more sounds if you want by clicking on the Sounds tab at the top left corner of the screen. Or you can even record your own voice if you want.
Forever - This is also a control block. It is called a C type block because it looks like a C. It is also called a Loop. We can add other blocks above, and below this block, but also we can add other blocks inside this block. Whatever we add inside this block, will run on and on till we do not stop it with Stop block , or by pressing the Red stop button.
Play Drum -
You will find this block in the newly created Music category if you have added the music extension in your Scratch Editor.
The play drum block has a list of 18 different instruments to choose from. And you can specify the beats.
The play drum block has a list of 18 different instruments to choose from. And you can specify the beats.
Wait - This is a golden colored Control block. You can use this block to make things wait for as long as you want. There is 1 seconds written when you add this block. You can add a bigger number to make it wait longer. This is a Stack type block. Yo u can add other blocks above and below this one.