Page 99 - 2502_Pakistan-kifayat_C-8
P. 99
Timeline
Loops help computers do the same task again and again without having to write the instructions over
and over.
A loop in Scratch is a block that repeats an action many times without having to write the same
instructions again and again.
The repeat loop repeats a set number of times.
The forever block runs continuously without stopping.
A repeat until block in Scratch keeps performing an action again and again until a certain condition is
met.
Nesting means placing one block inside another block.
Conditional statements, also known as decision-making, are used in programming to execute different
blocks of code based on certain conditions.
In programming, a function is a set of instructions grouped together to do a specific task.
Choose the correct option.
1. Which block repeats a set number of times?
a. b.
c. d.
2. Which block keeps going without stopping?
a. b.
c. d.
#Intermediate Level Programming 97

