Page 61 - Digicode_AI_class_8
P. 61
3. start
Repeat 6 times
(
Put a cross
Move 1 right
Put a tick
Move 1 down
)
4. start
Repeat 5 times
(
write “8”
Move 1 step left
)
B. Read the program and do as directed.
1. start
Repeat 4 times
(
Colour Yellow
Skip One Triangle
)
2. start
Repeat 6 times
(
Put a cross
Move 1 right
Move 1 down
)
Experiential Learning
Competency-based/Application-based questions Information Literacy
1. Lokesh has created a program in which he has written blocks of code multiple times to cover the
path ten times if a given condition is true. What can he use to reduce the lines of code in his
program?
2. Your sister Vidhya wants to display “Yes” or “No” for a year to be both a leap year and a century
year. But she is unable to do so. Write the program for her.
Algorithmic Intelligence 59

