πŸ‘† Tap a button to jump to that section, then tap the heading to open it. The blue H Β· Quiz button opens the chapter quiz.

🎯 Section A: Learning Objectives

🧩 Chapter 6: An Introduction to Scratch Programming

Class 5 Β· Computer & AI

What you will learn

  • Explain what a program and a computer language are, and name the two categories of computer languages.
  • Identify the main parts of the Scratch window, such as the Stage, Sprite, Blocks Palette and Coding Area.
  • Describe how to change a sprite’s appearance, choose a new sprite, resize it, and choose a backdrop.
  • Name the Motion, Events, Control and Sound block categories and the colour each one is coded.
  • Explain how to save a Scratch project and exit Scratch safely.
🧭 Before you start

You already know that a computer follows instructions. But who writes those instructions, and how? Scratch is a fun, colourful way to give a computer instructions by snapping together blocks, like jigsaw pieces, instead of typing difficult code. Have you ever seen an animated story or a simple game made on a computer? In this chapter you will learn how Scratch can help you build one yourself.

Chapter Road Map

StepWhat we doWhere
1Read the four topics on programs, languages and the Scratch windowSection B
2Look at picture cards of sprites, blocks and the Scratch windowSection C
3See the chapter as a mind mapSection D
4Revise with 20 flash cardsSection E
5Practise short and long answersSection F
6Read case studies and answer questionsSection G
7Take the 25-question chapter quizSection H
πŸ“˜ Section B: Concept Notes

1. Program and Programming Languages

Story: Meera wants to make a short animation of a dancing fish for her school’s Science Day. Her teacher says, ‘You will need a computer language to tell the computer what to do, step by step.’ Meera wonders what a computer language is, and how people who are not expert coders can still build fun projects. Her teacher smiles and says, ‘There is a language made just for students like you, called Scratch.’

A program is a set of instructions given to the CPU, in a proper sequence, to complete a task. Programs are written in a computer language with a pre-defined Syntax. Syntax is the grammar of a computer language.

A computer language is an interface between a computer and human beings (the user). It is a set of words, symbols and codes that the computer can understand. It is used to write a computer program.

The process of writing a program is called programming. People who write these programs are called programmers. Computer languages are classified into two major categories: Low Level Language (LLL) and High Level Language (HLL).

A Low Level Language is a programming language that is machine-dependent. It is closer to machine code. A machine-dependent language runs only on a particular type of computer.

A High Level Language is a programming language that enables a programmer to write programs that are machine-independent. It is closer to human-readable language. The main advantage of high level languages over low level languages is that they are easier to read, write and maintain.

Scratch is a high-level, block-based visual programming language. It has a free programmable toolkit that lets you create your own games, animated stories and interactive art, and share your creations with others over the Internet. You drag and combine code blocks to make animations, stories, musical instruments and games.

πŸ“¦ Word Box
  • Program: a set of instructions given to the CPU, in order, to complete a task
  • Syntax: the grammar, or fixed rules, of a computer language
  • Programming: the process of writing a program
  • Low Level Language (LLL): a machine-dependent language, runs only on one type of computer
  • High Level Language (HLL): a machine-independent, human-readable language
⭐ Remember This

A Low Level Language is machine-dependent and closer to machine code. A High Level Language is machine-independent and closer to human language, so it is easier to read, write and maintain. Scratch is a high-level, block-based language.

🀩 Fun Fact

In Scratch, you never type a single line of code. You simply drag colourful, puzzle-shaped blocks and snap them together, so your ‘program’ looks like a tower of jigsaw pieces!

🏠 Try at Home

Ask an elder at home if they know any computer language, such as Python, C or Java. Ask them whether it is easier or harder to learn than Scratch, and why they think so.

⚠️ Common Mistakes
Wrong ideaCorrect idea
A Low Level Language is easier to read and write than a High Level Language.It is the opposite: a High Level Language is easier to read, write and maintain, because it is closer to human language.
Syntax means the same as a computer program.Syntax is the grammar, or set of rules, of a computer language. A program is written using that syntax.
Scratch requires you to type lines of code like other languages.Scratch is block-based: you drag and snap together ready-made blocks instead of typing code.

2. Starting Scratch and the Scratch Window

To start Scratch, double-click the Scratch icon if there is a shortcut on the desktop. Or, click the Start button, scroll and find the letter S in the program list, then click on Scratch 3.

πŸ“˜ Clickipedia

Mitchel Resnick developed Scratch in the year 2007.

Features of Scratch

  • Easy to understand and learn.
  • Tools for creating interactive stories, games, art and more.
  • Predefined blocks are snapped together to create the project.
  • Its own paint editor and sound editor.

Components of the Scratch Window

  • Sprite: an object or actor that we see on the Scratch stage. The orange ‘cat’ is the default sprite.
  • Stage: the main working area to draw or perform the action. It shows the output of the program.
  • Backdrop: the background of the stage.
  • Blocks Palette: contains various predefined blocks used to perform different tasks. These blocks are used to create scripts in Scratch.
  • Sprites Info Pane: shows all the details of the sprites and backdrops used in a project.
  • Coding Area: the area where we pick and drop blocks from the Blocks Palette to create a script or program.
  • Script: a collection of a number of stacked blocks. It is also called a program and gives instructions in the form of blocks.
  • Go Button: the green flag used to run a Scratch program.
  • Stop button: the red button used to stop the project from running.
  • Menu bar: used to provide drop-down menus for common commands, such as opening and saving a file.
  • Tabs: there are three tabs in the Scratch window, namely Code tab, Costumes tab and Sound tab.
  • Code Tab: contains nine main block categories, namely Motion, Looks, Sound, Pen, Events, Control, Sensing, Operators and Variables, plus a My Blocks category. Each category contains blocks of a different colour.
  • Costumes Tab: here, you can add and make changes in the appearance of sprites and backdrops.
  • Sounds Tab: here, you can add and make changes in the sounds of sprites and backdrops.
πŸ“¦ Word Box
  • Sprite: an object or actor seen on the Scratch stage
  • Stage: the main working area that shows the program’s output
  • Script: a stack of blocks that gives instructions; also called a program
  • Coding Area: where blocks from the Blocks Palette are dropped to build a script
⭐ Remember This

The Scratch window has three tabs: Code, Costumes and Sound. The Code tab holds the block categories you use to build a script; the Costumes tab changes how a sprite looks; the Sound tab changes its sounds.

🀩 Fun Fact

Scratch gets its name from a DJ’s ‘scratching’ technique of mixing and remixing records. In the same way, Scratch lets you mix and remix existing blocks, sprites, sounds and costumes to make something new.

🏠 Try at Home

With an elder’s permission, open the free online Scratch editor at https://scratch.mit.edu/projects/editor/. Find and point out the Stage, the Sprite, the Blocks Palette, the Coding Area and the Go and Stop buttons.

⚠️ Common Mistakes
Wrong ideaCorrect idea
The Stage and the Coding Area are the same thing.The Stage shows the program’s output (what the sprite does). The Coding Area is where you build the script by dropping blocks.
The default Scratch sprite is a dog.The default sprite that appears when a new project opens is an orange cat.
The Sounds tab is used to change how a sprite looks.The Costumes tab changes how a sprite looks. The Sounds tab changes its sounds.

3. Working with Sprites and Backdrops

Changing the Appearance of a Sprite

  1. Click on the Costumes tab.
  2. Click on the image of the sprite and drag the selection blue border to select the cat.
  3. Click on Fill and Outline options to change the fill colour and outline colour of the cat sprite.

Choosing a Sprite from the Library

  1. Click on the Choose a Sprite option to open the library.
  2. Select a sprite you want to use. The selected sprite appears on the Stage.

Deleting a Sprite

  1. Select the sprite in the Sprites Info Pane.
  2. Click on the Delete icon on the top right corner of the sprite in the Sprites Info Pane.
βš™οΈ Tech Funda

You can also right-click on the sprite’s icon and choose Delete. The same right-click menu also lets you Duplicate or Export a sprite.

Resizing the Sprite

  1. Select it in the Sprites Info Pane.
  2. Click inside the Size text box and type the number. The size of the sprite changes.

Choosing a Backdrop

A backdrop is the background of the stage. You can choose a backdrop from the Library.

  1. Click on Choose a Backdrop button to open the library.
  2. Select a backdrop you want to use. The selected backdrop is applied to the stage.
βš™οΈ Tech Funda

You can also upload a backdrop or a sprite from files already saved on your computer, instead of choosing one from the library.

πŸ“¦ Word Box
  • Costume: the look or outfit of a sprite, changed in the Costumes tab
  • Backdrop: the background of the Stage
  • Sprites Info Pane: the panel used to select, resize or delete a sprite
⭐ Remember This

To delete, resize or check the details of a sprite, you must first select it in the Sprites Info Pane. Only after selecting it can you change its Size or click Delete.

🀩 Fun Fact

The Scratch sprite and backdrop libraries have hundreds of free, ready-made characters and scenes, from animals and fairies to outer space and underwater scenes, so you can build a whole story without drawing a single picture.

🏠 Try at Home

With an elder’s permission, open https://scratch.mit.edu/projects/editor/, click Choose a Sprite, pick any animal sprite, and try changing its Size in the Sprites Info Pane.

⚠️ Common Mistakes
Wrong ideaCorrect idea
Once a sprite is added, it cannot be deleted.A sprite can always be deleted: select it in the Sprites Info Pane and click the Delete icon, or right-click and choose Delete.
A backdrop can only be chosen from the library.A backdrop can be chosen from the library, or uploaded from files saved on your computer.

4. Scratch Blocks

Blocks are codes or commands used to create programs in Scratch. These puzzle-shaped blocks connect to each other vertically, like a jigsaw puzzle. To use a block, simply select it and then drag it onto your Coding Area. To add multiple blocks to a script, drag new blocks into the location in the script where you want them to appear. You can add new blocks above or below existing blocks.

Motion Blocks

They are colour-coded dark blue and are used to control the sprite’s movement: its placement, direction, rotation and movement.

  1. Click on the Motion block.
  2. Drag the ‘move 10 steps’ block to the Coding Area.
  3. Change the ’10’ to ’50’ by clicking in the block and typing 50.
  4. Double-click on the block in the Script area to see your sprite move 50 pixels to the right (towards the face of the sprite).
  5. To move the sprite backwards, change ’10’ to ‘-70’. This moves the sprite to the left (opposite to the direction the sprite faces).

More Motion Blocks: drag the ‘turn 15 degrees’ block below the ‘move’ block already in your script; it attaches itself automatically. Add more blocks, and double-click on them to play the animation and see your sprite move.

Events Blocks

They are colour-coded yellow and are used to sense events, which run the scripts: for example, when a sprite is pressed, a key is pressed, or the green flag is clicked. They are placed at the top of any script and control the starting of the script. The most common Events block is ‘when green flag clicked’. Once you drag this block to the top of your script, you no longer need to double-click your blocks: clicking the Go button (green flag) runs the whole script.

Control Blocks

They are colour-coded amber and are used to control the scripts. This is a very important category, because they are used to create loops, conditions and sequences in code, and can make a sprite repeat actions until a condition is met.

βš™οΈ Tech Funda

To remove a block from a script, simply drag it to the left, away from the Scripts pane.

Sound Blocks

They are colour-coded dark pink and are used to control sound. These blocks control the playback and volume of the sound files you select. You can also record your own voice or download sounds from your computer.

Full Screen Mode, Saving and Exiting

Click on the Full Screen Control button on the top right corner to fill the whole screen. To exit presentation mode, press the Esc key or click the same button again.

To save your project, click on the File tab, select ‘Save to your computer’, choose the location where you want to save it, type the name of the project in the File Name box, and click Save.

To exit Scratch, close the Scratch window by clicking the Close button in the Title Bar. If you have an unsaved project, Scratch will ask you to save it. Clicking Leave closes the window and loses any unsaved changes; clicking Stay brings you back to the Scratch window.

πŸ“¦ Word Box
  • Motion blocks (dark blue): control a sprite’s movement
  • Events blocks (yellow): sense events and start scripts
  • Control blocks (amber): create loops, conditions and sequences
  • Sound blocks (dark pink): control playback and volume of sounds
⭐ Remember This

Each block category has its own colour: Motion is dark blue, Events is yellow, Control is amber and Sound is dark pink. An Events block, such as ‘when green flag clicked’, is always placed at the top of a script.

🀩 Fun Fact

A single Control block called ‘forever’ can make a sprite repeat an action endlessly, such as bouncing off the edges of the stage again and again, without you having to click Go more than once.

🏠 Try at Home

With an elder’s permission, open https://scratch.mit.edu/projects/editor/. Drag a ‘when green flag clicked’ block to the Coding Area, snap a ‘move 10 steps’ block below it, click the green flag, and watch your sprite move. Then change 10 to -70 and click the flag again. What is different?

⚠️ Common Mistakes
Wrong ideaCorrect idea
Motion blocks and Control blocks are the same colour.Motion blocks are dark blue. Control blocks are amber. Each category has its own colour.
To run a script, you must always double-click every block.If a script starts with a ‘when green flag clicked’ Events block, you can simply click the Go button (green flag) to run it.
You can only remove a block by deleting the whole project.You can remove a single block from a script just by dragging it to the left, away from the Scripts pane.
πŸ–ΌοΈ Section C: Picture Cards

Look at each picture idea and explain the key idea in your own words.

Picture 1: The Sprite

🐱

Image prompt: Flat illustration of the default orange Scratch cat sprite standing on a plain Stage.

A sprite is an object or actor that we see on the Scratch stage.

Key idea: The default sprite in a new Scratch project is an orange cat.

Picture 2: The Stage and Backdrop

🎨

Image prompt: Flat illustration of a Scratch Stage with a beach backdrop and the cat sprite standing on it.

The Stage is the main working area where the sprite performs the action.

Key idea: A backdrop is the background picture shown on the Stage.

Picture 3: The Blocks Palette

🧩

Image prompt: Flat illustration of a row of colourful puzzle-shaped blocks of different colours stacked on top of each other.

The Blocks Palette holds ready-made, colour-coded blocks for different tasks.

Key idea: Blocks snap together vertically, like a jigsaw puzzle, to build a script.

Picture 4: Changing a Costume

🎨

Image prompt: Flat illustration of an Indian child in the Costumes tab, changing the fill colour of a cat sprite with a paint brush tool.

In the Costumes tab, you can change the fill and outline colour of a sprite.

Key idea: You click, select and drag the border to choose the part you want to colour.

Picture 5: Choosing a Sprite from the Library

πŸ“š

Image prompt: Flat illustration of a child browsing a grid of animal and fantasy sprite pictures on a screen, about to click one.

The Sprite Library has many ready-made characters to choose from.

Key idea: Clicking ‘Choose a Sprite’ opens the library; selecting one adds it to the Stage.

Picture 6: Motion Blocks

πŸ”΅

Image prompt: Flat illustration of dark blue puzzle blocks labelled ‘move’ and ‘turn’ pushing a sprite across the stage, with motion lines.

Motion blocks are colour-coded dark blue.

Key idea: They control a sprite’s placement, direction and movement.

Picture 7: Events: when green flag clicked

🚩

Image prompt: Flat illustration of a yellow block at the top of a script, with a green flag icon glowing above a child’s finger about to click it.

Events blocks are colour-coded yellow and sense events, such as the flag being clicked.

Key idea: An Events block always sits at the top of a script, to start it.

Picture 8: Control Blocks: Loops

πŸ”

Image prompt: Flat illustration of amber ‘forever’ and ‘repeat’ blocks wrapped around other blocks like a loop, with a sprite bouncing repeatedly.

Control blocks are colour-coded amber and create loops, conditions and sequences.

Key idea: A loop like ‘forever’ makes a sprite repeat an action again and again.

🧠 Section D: Mind Map
πŸ—ΊοΈπŸ§©

Image prompt: Colourful mind map poster with the centre ‘Scratch Programming’ and five branches: programs and languages, the Scratch window, sprites and backdrops, Scratch blocks, saving and exiting. Simple icons, Indian children.

🧩 SCRATCH PROGRAMMING

The same mind map in words

πŸ”΅ Programs and languages

Program β€’ Syntax β€’ Computer language β€’ Programming β€’ Programmer β€’ Low Level Language (machine-dependent) β€’ High Level Language (machine-independent) β€’ Scratch is a high-level, block-based language

🟒 The Scratch window

Sprite β€’ Stage β€’ Backdrop β€’ Blocks Palette β€’ Sprites Info Pane β€’ Coding Area β€’ Script β€’ Go and Stop buttons β€’ Menu bar β€’ Code, Costumes and Sound tabs

🟠 Sprites and backdrops

Changing appearance (Costumes tab) β€’ Choosing a sprite from the library β€’ Deleting a sprite β€’ Resizing a sprite β€’ Choosing or uploading a backdrop

🟣 Scratch blocks

Motion (dark blue) β€’ Events (yellow) β€’ Control (amber), loops and conditions β€’ Sound (dark pink)

πŸ”΄ Saving and exiting

Full Screen mode β€’ File tab β†’ Save to your computer β†’ File Name β†’ Save β€’ Close button β†’ Leave (loses changes) or Stay

Outline

  1. Programs and languages
  2. The Scratch window
  3. Sprites and backdrops
  4. Scratch blocks
  5. Saving and exiting
πŸƒ Section E: Flash Cards

Read the question, think of the answer, then tap the card to check.

1. What is a program?

A program is a set of instructions given to the CPU, in a proper sequence, to complete a task.

2. What is Syntax?

Syntax is the grammar, or pre-defined set of rules, of a computer language.

3. What is a computer language?

A computer language is an interface between a computer and a human user. It is a set of words, symbols and codes the computer can understand.

4. What is programming, and who is a programmer?

Programming is the process of writing a program. A person who writes programs is called a programmer.

5. Name the two major categories of computer languages.

Low Level Language (LLL) and High Level Language (HLL).

6. What does machine-dependent mean for a Low Level Language?

It means the language is closer to machine code and runs only on one particular type of computer.

7. Why are High Level Languages easier to use than Low Level Languages?

They are closer to human-readable language, which makes them easier to read, write and maintain.

8. What kind of language is Scratch?

Scratch is a high-level, block-based visual programming language.

9. Who developed Scratch, and in which year?

Mitchel Resnick developed Scratch in the year 2007.

10. What is the default sprite in a new Scratch project?

The orange ‘cat’ is the default sprite seen on the Scratch stage.

11. What is the Stage in Scratch?

The Stage is the main working area to draw or perform the action; it shows the output of the program.

12. What is a backdrop?

A backdrop is the background of the stage.

13. What does the Blocks Palette contain?

It contains various predefined blocks, used to create scripts, that perform different tasks.

14. What is a script in Scratch?

A script is a collection of a number of stacked blocks. It is also called a program and gives instructions in the form of blocks.

15. What is the difference between the Go button and the Stop button?

The Go Button is the green flag used to run a Scratch program. The Stop button is the red button used to stop the project running.

16. Name the three tabs in the Scratch window.

Code tab, Costumes tab and Sound tab.

17. How do you resize a sprite?

Select it in the Sprites Info Pane, click inside the Size text box, and type the number you want.

18. Which colour are Motion blocks, and what do they do?

Motion blocks are colour-coded dark blue and control the sprite’s placement, direction and movement.

19. Which colour are Events blocks, and where are they placed?

Events blocks are colour-coded yellow and are placed at the top of a script to start it, by sensing events like the green flag being clicked.

20. Which colour are Control blocks, and why are they important?

Control blocks are colour-coded amber. They are important because they create loops, conditions and sequences, and can make a sprite repeat actions until a condition is met.

✏️ Section F: Q&A

Try to answer each question yourself first. Then tap to see the model answer.

10 Short Questions

Short 1. How did people count and calculate before the invention of calculators and computers?

They used tools and methods such as fingers, pebbles and knots in ropes, but in computer science a program is what tells a computer what to do, step by step, using a computer language with its own Syntax.

Short 2. What is Syntax?

Syntax is the grammar, or set of fixed rules, of a computer language. A program must follow this syntax so that the computer can understand it.

Short 3. What are the two major categories of computer languages?

They are Low Level Language (LLL), which is machine-dependent, and High Level Language (HLL), which is machine-independent.

Short 4. What is Scratch?

Scratch is a high-level, block-based visual programming language. It lets users create games, animated stories and interactive art by dragging and combining code blocks.

Short 5. Who developed Scratch, and when?

Scratch was developed by Mitchel Resnick in the year 2007.

Short 6. What is a sprite?

A sprite is an object or actor that we see on the Scratch stage. The orange cat is the default sprite in a new project.

Short 7. What is the Blocks Palette used for?

The Blocks Palette contains various predefined, colour-coded blocks used to perform different tasks. These blocks are dragged into the Coding Area to create a script.

Short 8. Name the three tabs found in the Scratch window.

The three tabs are the Code tab, the Costumes tab and the Sound tab.

Short 9. What is the difference between the Go button and the Stop button?

The Go Button is the green flag used to run a Scratch program, while the Stop button is the red button used to stop the project from running.

Short 10. How do you remove a block from a script?

You simply drag the unwanted block to the left, away from the Scripts pane, and it is removed from the script.

5 Long Questions

Long 1. Explain the difference between a Low Level Language and a High Level Language, and name which one Scratch is.

A Low Level Language (LLL) is a programming language that is machine-dependent. It is closer to machine code, and a machine-dependent language runs only on a particular type of computer. A High Level Language (HLL), on the other hand, is machine-independent, meaning programs written in it can run on more than one type of computer. A High Level Language is closer to human-readable language, so the main advantage of high level languages over low level languages is that they are easier to read, write and maintain. Scratch is a high-level, block-based visual programming language, which is one reason it is so popular with beginners: students can build real programs without needing to learn difficult machine code first.

Long 2. Describe the main parts of the Scratch window and what each part does.

The Scratch window has several important parts. The Stage is the main working area where the sprite performs actions, and it shows the program’s output, with the Backdrop forming its background. The Sprite is the object or actor, such as the default orange cat, that is controlled by the program. The Blocks Palette holds ready-made, colour-coded blocks, which are dragged into the Coding Area to build a Script, a stack of blocks that gives instructions. The Sprites Info Pane shows details of sprites and backdrops used, while the Go button runs the program and the Stop button halts it. Together these parts let a student build, run and stop an animation or game.

Long 3. Explain how you would change the appearance of a sprite, choose a new one, and resize it in Scratch.

To change a sprite’s appearance, click on the Costumes tab, then click on the sprite’s image and drag the selection’s blue border to pick the part you want to change. Click on the Fill and Outline options to change its fill colour and outline colour. To choose a completely new sprite, click ‘Choose a Sprite’ to open the library, then select one; it appears on the Stage. To resize any sprite, select it in the Sprites Info Pane, click inside the Size text box, and type the number you want; the sprite’s size then changes on the Stage.

Long 4. Describe the four main block categories covered in this chapter, with their colours and uses.

Scratch blocks are grouped into colour-coded categories. Motion blocks are dark blue and control a sprite’s placement, direction and movement, such as the ‘move 10 steps’ block. Events blocks are yellow and sense events, such as the green flag being clicked; they sit at the top of a script to control when it starts. Control blocks are amber and are very important, since they create loops, conditions and sequences, letting a sprite repeat actions until a condition is met. Sound blocks are dark pink and control the playback and volume of sound files, including recorded voice or downloaded sounds.

Long 5. Explain the steps to save a Scratch project and to exit Scratch safely.

To save a project, click the File tab in the Menu bar, then select ‘Save to your computer’. Choose the location on your computer, type a suitable name in the File Name box, and click Save to store the file. To exit Scratch, close the window using the Close button in the Title Bar. If you have an unsaved project, Scratch will ask whether to save it. Clicking Leave closes the window at once, and any unsaved changes are lost, while clicking Stay returns you to the Scratch window, so you can save your work safely first.

πŸ” Section G: Case Studies

Case Study 1: Meera’s Dancing Fish

Meera, a Class 5 student in Mumbai, wants to make a short animation of a dancing fish for her school’s Science Day project. Her teacher opens Scratch and shows her the default orange cat sprite sitting quietly on the Stage. ‘First, let’s choose a fish instead of the cat,’ says the teacher, clicking on the ‘Choose a Sprite’ option to open the Sprite Library. Meera scrolls through the pictures and picks a bright, colourful fish from the library. It appears on the Stage at once, taking the place of the cat, and Meera is now ready to start building her dancing script.

Questions

  1. Which option did the teacher click to open the sprite library?
  2. What is the name for the tool used to pick a ready-made character like the fish?
  3. What was the sprite on the Stage before Meera chose the fish?
  4. Where does the newly chosen sprite appear after it is selected?
  5. Why might choosing a sprite from the library be easier than drawing one from scratch?
πŸ‘‡ Tap to see the answers
  1. She clicked on the ‘Choose a Sprite’ option.
  2. The Sprite Library.
  3. The default orange cat sprite.
  4. It appears on the Stage.
  5. Because the library already has hundreds of ready-made sprites, so a student does not need to draw or paint a character before starting to animate it.

Case Study 2: Arjun and the Two Languages

Arjun’s elder cousin, who studies engineering in Pune, tells him that she is learning a Low Level Language for one of her college subjects, and finds it very difficult because it is so close to machine code. Arjun remembers that Scratch, which he uses in his Class 5 computer lab, lets him build games and animations just by dragging and snapping together colourful blocks, without typing a single line of code. He wonders why his cousin’s language is so much harder to read and write than the simple, high-level language he uses at school.

Questions

  1. What kind of language is Arjun’s cousin learning: Low Level or High Level?
  2. What does machine-dependent mean for a Low Level Language?
  3. What kind of language is Scratch?
  4. Why is a High Level Language usually easier to learn than a Low Level Language?
  5. Give one reason Scratch feels easier to Arjun than his cousin’s college language.
πŸ‘‡ Tap to see the answers
  1. A Low Level Language.
  2. It means the language is closer to machine code and runs only on a particular type of computer.
  3. Scratch is a high-level, block-based visual programming language.
  4. Because a High Level Language is closer to human-readable language, which makes it easier to read, write and maintain.
  5. Scratch lets him drag and snap together ready-made, colour-coded blocks instead of typing difficult machine code.

Case Study 3: Priya’s Missing Green Flag

Priya, in a school near Thane, builds a script in Scratch with a ‘move 10 steps’ block and a ‘turn 15 degrees’ block snapped together in the Coding Area. But every time she wants to see her sprite move, she has to double-click the blocks, which feels slow and clumsy during her presentation. Her classmate Rohan looks at her script and tells her that she is missing one important yellow block at the very top. Priya finds it in the Events category, drags it above her other blocks, and now she can simply click the green Go button once to play her whole animation instantly, exactly like the other projects in her class.

Questions

  1. Which category of block was Priya missing at the top of her script?
  2. Name the exact block Priya most likely needed to add.
  3. Which colour are Events blocks coded?
  4. Which button can now run Priya’s whole script in one click?
  5. Why do Events blocks need to be placed at the top of a script?
πŸ‘‡ Tap to see the answers
  1. An Events block.
  2. The ‘when green flag clicked’ block.
  3. Yellow.
  4. The Go button (the green flag).
  5. Because Events blocks control the starting of the script, so the script will not begin on its own unless an Events block, like ‘when green flag clicked’, is at the top.

Case Study 4: Rahul’s Repeating Bounce

Rahul, from a school in Kalyan, wants to build a small game where his sprite keeps moving forward and bounces back whenever it touches the edge of the Stage, again and again, without him clicking the green flag every single time. He remembers from his computer class that one category of Scratch blocks, used to control scripts, can make a sprite repeat actions until a condition is met. He opens the Blocks Palette, finds the amber-coloured blocks, and drags a ‘forever’ block so that it wraps around his ‘move 10 steps’ and ‘if on edge, bounce’ blocks, before testing it by clicking the Go button.

Questions

  1. Which block category does Rahul use to make his sprite repeat forever?
  2. Which colour are these blocks coded?
  3. Besides loops, what else can this category of blocks create in a script?
  4. What shape are Scratch blocks, and how do they connect?
  5. Why is a ‘forever’ block useful for Rahul’s bouncing sprite?
πŸ‘‡ Tap to see the answers
  1. Control blocks.
  2. Amber.
  3. Conditions and sequences in code.
  4. They are puzzle-piece shaped and connect to each other vertically, like a jigsaw puzzle.
  5. It makes the sprite keep moving and bouncing without stopping, so Rahul does not need to click the Go button again and again.

Case Study 5: Saving Diya’s Project

Diya, a Class 5 student in Borivali, has spent almost an hour building her first Scratch animation, with a sprite, a backdrop and several scripts she is proud of, and it is nearly time for her computer lab period to end. Her teacher reminds the whole class to save their work carefully before closing Scratch, so that nobody loses the project they have worked so hard on. Diya clicks on the File tab in the Menu bar, chooses ‘Save to your computer’, picks the class folder on the computer, types a suitable name for her project in the File Name box, and finally clicks the Save button.

Questions

  1. Which tab did Diya click first to save her project?
  2. Which option under that tab did she choose?
  3. What two things does Diya need to decide before clicking Save?
  4. What might happen if Diya closes Scratch without saving, and then clicks Leave?
  5. What should Diya click instead of Leave if she is not sure her project is saved?
πŸ‘‡ Tap to see the answers
  1. The File tab.
  2. ‘Save to your computer’.
  3. The location where she wants to save the project, and the file name to type in the File Name box.
  4. Any unsaved changes to her project would be lost.
  5. She should click Stay, which brings her back to the Scratch window so she can save her work properly first.

βœ… Section H: Quiz

Test yourself with the 25-question chapter quiz. Only one option is correct, and you will see the right answer after each question.

Start the quiz ➀

πŸŽ‰ Well done!

You now know how programs and programming languages work, how the Scratch window is built, and how Motion, Events, Control and Sound blocks bring a sprite to life!