Page 137 - TP_Prime_V2.2_Class8
P. 137
21 st
Warm Choose the correct option. Century #Information Literacy
Skills
Up! 1. Which construct allows a program to execute a block of code repeatedly
as long as a certain condition is met?
a. Variable assignment b. Loop
2. What is the result when using the "AND" condition in a program?
a. True only if both conditions are true ALGORITHMIC INTELLIGENCE
b. True if either of the conditions is true
3. What type of loop repeats a certain number of times?
a. Conditional loop b. Counting loop
4. Conditional loops in a program repeat until:
a. A fixed number of times
b. A certain condition is reached 135
Let's Revisit
• 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.
Mind Drill
Rapid Fire
1. Tick () the correct option.
a. The result of the computer’s decision for a ____________ will always be either true
or false.
(i) loop (ii) condition
(iii) variable (iv) Constant

