Page 83 - Code Craft Computer-8
P. 83
6. The __________ operator is used to check if a given value
exists in the sequence or not.
a. in b. on 6. a b c d
c. for d. them
B. Gap-fill exercise.
1. The ___________ operator evaluates to True if it finds a value in the specified sequence
else it returns False.
2. The ___________ statement executes a set of statements repeatedly, until the logical
expression remains true.
3. Any ___________ value in the while loop indicates an always true condition whereas
zero indicates ___________ condition.
4. The ___________ loop never ends.
5. The ___________ and ___________ are the jump statements in Python.
6. A ___________ is a succession of values bound together by a single name.
C. True and False assessment.
1. If the condition given in a loop never becomes false, then the loop will never
terminate and run indefinitely.
2. We can use do-while loop in Python.
3. The continue statement breaks the loops one by one.
4. To come out of the infinite loop, we can either close the program window or press
Ctrl + C.
5. A sequence is a succession of values bound together by a single name.
6. The while statement is the looping statement.
D. Give appropriate responses to the questions.
1. What is looping?
2. Write the syntax to the ‘for’ loop.
3. What is the use of jump statement?
4. Draw the flowchart of the ‘for’ loop.
5. Define the use of ‘while’ statement with the help of example and flowchart.
6. Distinguish between continue and break statements.
Analyt ical Skills
Practical Session #Experiential Learning
A. Write the Python programs for the following:
1. To print the table of 5 using the while loop
2. To print odd numbers from 1 to 50
83

