Page 113 - TP_Play_V2.1_class8
P. 113
Clickipedia
Research shows coding activates brain areas tied to memory, attention, and language,
boosting learning.
Reb t
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.
Exercise
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
B. Fill in the blanks using the words given below:
condition, conditional, else, if
1. Conditional statements in a program instruct the computer to make a decision based on a given
.................................
2. The statements written after the ................................ condition in a program are executed when the
condition is true.
Algorithmic Intelligence 111

