Page 132 - Touchpad_Plus_V3.2_Class 8
P. 132
B. Fill in the blanks using the words given below:
Hints
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.
3. In a program, the statements following ......................... are executed when the condition specified
in the 'if' statement is false.
4. There are two types of loops: counting loops and ......................... loops.
C. Short answer type questions.
1. Define conditional statements.
.....................................................................................................................................................................................................
.....................................................................................................................................................................................................
2. Give one difference between AND and OR conditions.
.....................................................................................................................................................................................................
.....................................................................................................................................................................................................
3. What do you understand by Loop?
.....................................................................................................................................................................................................
.....................................................................................................................................................................................................
D. Long answer type questions.
1. How do loops help us?
.....................................................................................................................................................................................................
2. 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.
.....................................................................................................................................................................................................
.....................................................................................................................................................................................................
.....................................................................................................................................................................................................
.....................................................................................................................................................................................................
130 Plus (Ver. 3.2)-VIII

