Page 85 - Digicode_AI_class_5
P. 85
You can also place the answer block in the say block. It will look
something like this.
Snap this block to the ask block. Now click and see what happens. Penguin speaks the name
for the given number of seconds.
You can change the question in the ask block to any question of your choice. Click on the text
box and type the question.
Critical Thinking
code Quest Information Literacy
Answer the following questions.
1. Which block is used to make the penguin ask question?
2. Which block checks if the chosen key is pressed by the user?
3. What are CAP blocks?
4. Which blocks are C-shaped?
Variables
A program is a group of commands and instructions
that tell the computer to carry out a task. In scratch,
Every time you type a name
a program is called a Script. A Script is made up of
or number, the previous value
a number of blocks. So, the blocks are the commands
in the variable gets deleted and
or instructions that we give to the sprite to perform a
the new value is stored.
task.
Advanced Blocks & Game Creation 83

