1. Fill in the blanks.
(b)
___________statement skips the execution of rest of the statement within a loop
(c) A loop can be terminated using___________
statements
(d)
___________is used to set the initial or starting value of the control variable.
Answers
Answered by
9
Answer:
(b) continue statement
(c) break statement
kharouddarshansingh:
u r welcome
Answered by
0
The answers to the questions are:
(b) Continue statement skips the execution of the rest of the statement within a loop.
(c) A loop can be terminated using the Break statement.
(d) For is used to set the initial or starting value of the control variable.
- A continue statement terminates the current loop iteration. The continue statement moves programme control to the end of the loop body.
- Inside loops, the continue command is utilised. When a continue statement is found within a loop, control is returned to the beginning of the loop for the next iteration, skipping the execution of statements within the loop's body for the current iteration.
- The break statement terminates the execution of the immediately preceding do, for, switch, or while statement.
- A For loop is a conditional iterative statement in programming that is used to check for particular criteria and then repeatedly execute a block of code as long as those conditions are met.
- The For loop differs from other looping statements in that it includes an explicit loop number or loop variable that allows the body of the loop to know the exact sequencing of each iteration.
SPJ3
Similar questions