Page 90 - 2611_SmartGPT Pro V(5.0) C-8
P. 90
1. Tick ( ) the correct option.
a. What is the use of range(n) function?
(i) Generates a set of whole numbers starting from 0 to (n+1).
(ii) Generates a set of whole numbers starting from 1 to (n+1).
(iii) Generates a set of whole numbers starting from 0 to (n-1).
(iv) Generates a set of whole numbers starting from 1 to (n-1).
b. Which of the following is a looping statement in Python?
(i) for statement (ii) continue statement
(iii) if statement (iv) break statement
c. Which of the following statements allow to repeat a task for a fixed number of times?
(i) for statement (ii) while statement
(iii) if…else statement (iv) continue statement
d. Which of the following statements terminates the execution of the loop?
(i) if (ii) for
(iii) break (iv) continue
2. Fill in the blanks using the words from the help box.
Infinite, Break, Iterative, Continue, Two
a. Google Workspace is a set of cloud-based applications and tools designed to support productivity,
and communication.
b. Looping statements are also knowns as statements.
c. Python provides types of looping statements.
d. The loop never ends.
e. The and are the jump statements in Python.
3. Write 'T' for true and 'F' for false.
a. The range( ) function is used in the for loop to iterate over the numbers.
b. The continue statement breaks the loops one by one.
c. To come out of the infinite loop, we can either close the program window or press Ctrl + C.
d. A sequence is a succession of values bound together by a single name.
e. The while statement is the looping statement.
88 Computer Science (V5.0)-VIII

