Page 141 - TP_Plus_v2.2_Class_8
P. 141
c. What do you understand by Loop?
__________________________________________________________________________________
__________________________________________________________________________________
4. Long answer type questions.
a. How do loops help us?
__________________________________________________________________________________
b. Write an if condition to display “We have a match on Sunday” or “No, match on Sunday” based
on whether today is Sunday and if there is a cricket match.
__________________________________________________________________________________
__________________________________________________________________________________
__________________________________________________________________________________
__________________________________________________________________________________
c. Write an if condition to display “Exam today” or “No exam on weekend” if it is a weekday today
or your exam.
__________________________________________________________________________________
__________________________________________________________________________________
__________________________________________________________________________________
__________________________________________________________________________________
5. Write the output of the following programs:
a. Repeat 5 times Marks 45 40 55 49 85
{ Result
READ Marks
IF Marks > 50 THEN
PRINT "Pass"
ELSE
PRINT "Fail"
}
b. start
Repeat 5 times
(
Put a cross
Move 1 right
Put a tick
Move 1 down
)
Algorithmic Intelligence 139

