Page 131 - Touchpad_Plus_V3.2_Class 8
P. 131
Clickipedia
Research shows coding activates brain areas tied to memory, attention, and language,
boosting learning.
Restart
Conditional statements are used in a program to instruct the computer to make a decision.
A loop allows a set of instructions or a block of code to be executed repeatedly.
When a loop repeats forever (endlessly), it is called an infinite loop.
Counting loop repeat a block of code a specific number of times.
Conditional loops repeat until a certain condition is reached, which means they keep going until
the condition remains true.
Checkpoint
A. Tick ( ) the correct option.
1. The result of the computer’s decision for a ......................... will always be either true or false.
a. Loop b. Condition
c. Expression d. Function
2. A loop is used to execute instructions or a block of code ......................... times.
a. Two b. Three
c. Multiple d. Ten
3. What is an endless loop called?
a. Counting loop b. Conditional loop
c. Infinite loop d. Finite loop
4. Which of the following results true if both conditions are true?
a. AND b. OR
c. NOR d. NAND
Algorithmic Intelligence 129

