Page 106 - 2611_SmartGPT Pro V(5.0) C-4
P. 106
CONTROL BLOCK
Control blocks have looping blocks which are used when the same blocks have to be
repeated a number of times. They are colour-coded amber.
Blocks Functions
This block pauses the running of the script for the
wait 1 seconds
number of seconds.
If then This block executes a set of actions only if a specific
condition is true. It checks the condition and runs the
included blocks when the condition holds.
If then This block allows the program to perform one action
if a condition is true and another action if it is false. It
else checks the condition, executing the first set of blocks if
true and a different set if false, providing a clear choice
between two paths.
repeat 10
This block repeats a set of blocks for a given number of
times.
This block keeps on repeating a set of blocks till the
forever
stop button is clicked. It is similar to repeat block and
expands automatically to accommodate the blocks
you snap inside it.
a. Which block category instructs the sprite to play music?
______________________________________________________________
uiz Bee b. Which block category displays text within pop-up bubbles?
______________________________________________________________
104 Computer Science (V5.0)-IV

