Page 59 - Dig_CodeAI_V2.1_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 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.
TeCh Ready
A. Tick ( ) the correct option.
1. The result of the computer’s decision for a will always be either true or 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) ten
3. What is an endless loop called?
(i) Counting loop (ii) Conditional loop
(iii) Infinite loop (iv) None of these
4. Which of the following 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

