Lesson 2 BUILDING BLOCKS
Lesson 2 BUILDING BLOCKS
LESSON 2
TOPICS & AGENDA
01 Block Categories in Scratch
02 Block Shapes
03 Coding in Scratch
BLOCK CATEGORIES
IN SCRATCH
BLOCK CATEGORIES
EXTENSIONS
❑ Unlike other Scratch blocks, function blocks cannot be placed over or under other
stack blocks to use them in a script. They are instead dropped into input gaps, called
parameters, found on many stack blocks.
FUNCTION BLOCKS
❑ There are two kinds of Function blocks in Scratch: Reporter
blocks and
Boolean blocks. The Operators category is made up entirely of
these two
kinds of blocks.
⮚ Reporter blocks contain values of any kind. These values can be
numbers or even strings of data. They will fit in inputs that require
values. Study the following example.
FUNCTION BLOCKS
⮚ Boolean blocks, on the other hand, compare and check for the validity
of
conditions instead of holding values. Their name and design are taken
from
Boolean flowchart elements, which also do the same thing.
CONTROL BLOCKS
❑ Like Function blocks, there are two types of Control blocks that you can
use in
Scratch. The first kind, C Blocks, are so named because of the opening, or
mouth, on one side that allows users to put blocks in, making them look like
the letter C.
A C Block wraps around a stack of blocks, with its condition affecting all of
them.
⮚ There are five C
Blocks
in Scratch, as shown in
the image.
CONTROL BLOCKS
Three of the C Blocks allow you to create looping statements.
The Repeat [] C Block loops all of its contents by the number of times
you specify in the parameter.