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

G-8 Ch-8 Iterative Statements in Python

The document provides an overview of iterative statements in Python, specifically focusing on for and while loops. It includes definitions, examples, and answers to questions regarding the functionality and components of these loops, as well as concepts like membership operators and infinite loops. The content is structured for an ICT class for eighth-grade students at Palladium School, Hisar.

Uploaded by

vandnajiyana0411
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)
401 views2 pages

G-8 Ch-8 Iterative Statements in Python

The document provides an overview of iterative statements in Python, specifically focusing on for and while loops. It includes definitions, examples, and answers to questions regarding the functionality and components of these loops, as well as concepts like membership operators and infinite loops. The content is structured for an ICT class for eighth-grade students at Palladium School, Hisar.

Uploaded by

vandnajiyana0411
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

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.

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

You might also like