Page 83 - CloudGPT_C8_Flipbook
P. 83
4. Which of the following loop is used for iterating a sequence over a specific number of times?
a. While loop b. For loop
c. Nested loop d. Incrementing loop
5. Which statement is used to break out of a loop early when the specific condition is met?
a. Iteration b. Loop
c. Continue statement d. Break statement
B. State whether the following statements are true (T) or false (F).
1. A loop reduces lines of code.
2. Condition should result false at a certain point of time, otherwise code block will
enter in an infinite loop.
3. A loop does not allows you to execute a statement or group of statements
multiple times.
4. A nested loop is helpful in case if you are working on one condition.
5. When the looping condition is true the code will enter into a loop.
C. Fill in the blanks.
HELP BOX control, false, loop, iterations, true
1. By using ........................... code becomes easier to understand.
2. Based on the condition, loops execute a block of code repetitively till the specified condition
gets ........................... .
3. The loop condition is checked on the basis of the loop's ........................... variable.
4. The loop executes when the condition is ........................... .
5. To run a block of code in a loop, you need to set a condition and its number
of ........................... .
D. Match the following:
1. While loop a. Condition which must exist before starting a specific task.
2. For loop b. Loop inside another loop.
3. Nested loop c. Condition which must be met before completing a specific task.
4. Entry criteria d. Executes a statement or group of statements till a given
condition is true.
5. Exit criteria e. Iterating over sequence a specific number of times.
Loops Using Block Coding 81

