Page 59 - Digicode_AI_class_8
P. 59
According to a research, coding activates five brain regions, which are related to working
memory, attention, and language processing, which may enhance the process of learning.
REFRESH
Conditional statements are used in a program to instruct the computer to make a decision.
A loop is used to execute instructions or a block of code multiple times, without writing it repeatedly.
A sequence of instructions when repeated for a fixed number of times or until a condition is true is
called a loop.
TeCh Ready
A. Tick ( ) the correct option.
1. The result of the computer’s decision for a will always be either a true or a
false.
(i) loop (ii) condition
(iii) Both (i) and (ii) (iv) None of these
2. A loop is used to execute instructions or a block of code times.
(i) two (ii) three
(iii) multiple (iv) infinite
3. What is an endless loop called?
(i) Counting loop (ii) Conditional loop
(iii) Infinite loop (iv) None of these
4. Which condition results true if both conditions are true?
(i) AND (ii) OR
(iii) Both (i) and (ii) (iv) None of these
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 57

