Page 91 - Dig_CodeAI_V2.1_Class_5
P. 91
REFRESH
The blocks in Scratch are in different shapes. They can be divided into six types of shapes.
Hat blocks always come at the top of a script as they start a script.
Stack blocks perform the main commands.
Boolean blocks are condition blocks which return the values “true” or “false” or the numbers
“0” or “1”.
Reporter blocks can hold values, which consist of numbers or strings.
C blocks are loop blocks which check if a condition is true in the blocks within the loop.
The blocks that end scripts are known as CAP blocks.
The sensing blocks in Scratch sense the input from the keyboard or the mouse at the time of
execution of a script.
We store data in the computer memory so that we can get information from it later. This
data is stored in variables.
A variable that stores numbers is called a numeric variable.
A variable that stores letters in the form of strings or characters, is called string variable.
Scratch has two conditional blocks: If…then….. and If…then….else block.
You can create games in Scratch by painting a new Sprite and a new backdrop.
TeCh Ready
A. Tick ( ) the correct option.
1. Which block always comes at the top of a script?
(i) C block (ii) Boolean block
(iii) Hat Block (iv) None of these
2. Which variable can be used and modified by all the Sprites?
(i) Global variable (ii) Local variable
(iii) Both (i) and (ii) (iv) None of these
3. C blocks are called blocks.
(i) Wrap (ii) Big
(iii) Cute (iv) Small
4. How many types of block shapes are there in Scratch?
(i) Five (ii) Six
(iii) Seven (iv) None of these
Advanced Blocks & Game Creation 89

