Lesson -6
Scratch Programming- Introduction to Game Programming
Answer the following:
1. What is Scratch? Explain the main features of scratch.
Ans. Scratch is a free programming language, designed for
children to enhance their computing skills.
The features of scratch are:
Scratch is available free of cost.
It is easy to understand and learn.
Instead of writing text or codes, predefined blocks are snapped
together to create the script.
It allows playful experimenting with program segments.
2. What does the scratch info pane display?
Ans. Scratch info pane will display the information about the
selected sprite as well as few tools for manipulating the sprite.
3. What do you understand by backdrop?
Ans. Backdrop is used to change the background of the stage. We
can create our own backdrop or choose any backdrop from the
available built in options.
4. What is the purpose of the Script area?
Ans. Script area is used to pick and drop the blocks to create a
script.
5. List the names of different block categories given under the
blocks menu.
Ans. Blocks are categorized based on their functionalities. There
are six different block shapes: Hat blocks, Stack blocks, Boolean
blocks, Reporter blocks, C blocks, and Cap blocks.
6. Write the short notes on following blocks:
a. Set volume to 100%
This block sets the Sprite volume to the specified amount.
b. Next costume
This block changes the Sprite costume to the next one in the
Sprite’s list. If the current costume is the last in the list, the
Sprite will take the first one.
c. Go to mouse pointer
This bock instructs the Sprite to follow the mouse pointer or
another Sprite.
d. Change pen size by 1
This block changes the pen’s size by the specified value.
7. Which block allows the sprite to say some message for the
specified number of seconds?
Ans. Think Hmm… for 2 secs block allows the sprite to say
some message for the specified number of seconds.
8. Differentiate between the given set of blocks:
a. Repeat and repeat until
Repeat: This block is used to repeat a script written inside it,
a given number of times.
Repeat until: It repeats the set of blocks written inside it until
the condition evaluates to true.
b. If then and if then else
If then: It executes the blocks written inside it only if the
specified condition evaluates to true. If the condition is false,
then the script written inside the block will be ignored.
If then else: The script under if is executed if the condition
evaluates to true, otherwise the script under else is executed.
9. Explain the use of forever block in scratch.
Ans. Blocks held inside this block will be in a loop that never ends,
unless the stop button is clicked.
@@@@@@@@@