Page 85 - Dig_CodeAI_V2.1_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 a 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 a
or number, the previous value in
number of blocks. So, the blocks are the commands
the variable gets deleted and the
or instructions that we give to the Sprite to perform new value is stored.
a task.
Advanced Blocks & Game Creation 83

