PALLADIUM SCHOOL, HISAR
CLASS: VIII
SUBJECT: ICT
CHAPTER - 8: ITERATIVE STATEMENTS IN PYTHON
SOLUTIONS OF BOOK EXERCISE AND
QUESTION ANSWERS
√
√
Repetitive or Looping statements
for & while loops
in & range
range
C. Answer the following:
Q1. What do you mean by Iterative statements? Give examples.
Ans 1. Iterative statements are known as looping statements or repetitive statements. These statements keep
repeating a set of statements as long as the given condition is true.
Q2. Why are “for” and “while” loops called entry controlled loops?
Ans 2. These loops are called entry controlled loops as in both the loops first initial value is checked by
condition, if the condition is true then it will enter into the loop otherwise it will show no output.
Q3. What is the use of membership operators in Python?
Ans 3. The membership operators are used to check the given value whether is exists in the sequence or in
the range or not.
Extra Question Answers:
Q1.What do you mean by loop…else statement?
Ans 1. The loop…else statement is optional to be used in a program. The else block simply makes sure that
the loop is terminated normally.
Q2. Write about an Infinite loop.
Ans 2. An Infinite loop (or endless loop) is a sequence of instructions in a computer program which loops
endlessly. It happens either due to the loop having no terminating condition or having the condition that can
never be met.
Q3. Name the component of while loop.
Ans 3. There are four components of while loop. These are: Initialization, Condition/Test expression, Loop
body and step value.
***************