Page 98 - Code_GPT_Class_8
P. 98
c. Repeat 5 times start
(
Put a cross
Move 1 right
Put a tick
Move 1 down
)
d. Repeat 5 times start
(
write “8”
Move 1 step left
)
2. Read the program and do as directed.
a. Repeat 4 times start
(
Colour Yellow
Skip One Triangle
)
b. Repeat 6 times start
(
Put a cross
Move 1 right
Move 1 down
)
2. Competency-based/Application-based questions:
a. 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?
b. 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.
96 CodeGPT (Ver. 4.0)-VIII

