0% found this document useful (0 votes)
70 views2 pages

Computer Class

Study

Uploaded by

sanjit pani
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
70 views2 pages

Computer Class

Study

Uploaded by

sanjit pani
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

S.D.S.

M SCHOOL FOR EXCELLENCE


SUB: COMPUTER SCIENCE (2021-22)
CLASS : VIII
BOOK : CYBER BEANS (8)
PUBLISHER : KIPS LEARNING SOLUTION PVT.LTD

Chapter – 8 : ITERATIVE STATEMENTS IN PYTHON


Word Bank:
i. Iterative
ii. Variable
iii. Constant
iv. Initialization
v. Test expression
vi. Membership operator
vii. Infinite loop
viii. range() function
ix. for loop
x. while loop

Multiple Choice Questions:


1. Iterative statement is known as________
a. Looping b. Conditional c. Selection d. Sequential
2. The ________loop is used when we are sure about how many times a loop body will be executed.
a. While b. for c. while…else d. while…not…else
3. If the condition in a loop is false in the first step itself, we get _____.
a. No output b. Infinite c. Error d. Normal
4. The ________operator checks whether a given value lies within a given set a values.
a. Not in b. between c. range d. in
5. The ______loop can be applied to a program where the number of iterations is not known
beforehand.
a. while b. while…else c. for…not…else d. for

Answers: 1. a. Looping 2. b. for 3. a. No output 4. d. in 5. a. while


Answer in one word:
1. Mention the other name for iterative statements
Ans: Looping Statement / Repetitive Statement / Loops

2. Name the two types of iterative statements.


Ans: for and while

3. Name the two membership operators in python.


Ans: (i) in and (ii) not in

4. Which function is used to check the range in a loop?


Ans: range() function
1|Page Class-VIII
Answer the following questions:
1. What do you mean by Iterative Statements? Give examples.
Ans: The statements that keep repeating themselves as long as a given condition is true are
called Iterative statements or Repetitive statements. As soon as the condition becomes false, the
loop terminates. These are also called Looping statements or simply loops.
An iterative statement is based on three values:
 A start value (initial value), e.g., C=0
 A test condition, e.g., C<=5
 A step value (increment or decrement), e.g., C=C+1

2. Why are for and while loops called entry controlled loops?
Ans: for and while loops are called entry controlled loops because if ‘test condition is false,
loop body will not be executed’.

3. What is the use of membership operators in python?


Ans: Membership operators plays an important role in controlling the working of a loop. There
are two membership operators, in and not in.

************************

2|Page Class-VIII

You might also like