2. What abandons the current iteration of the loop?
i.Continue
ii. Break
iii. Stop
iv. Infinite
Answers
Answered by
2
Answer:
For the given question, Break is the correct option.
Explanation:
- A break can appear in both switch and loop statements.
- A break cause the switch or loop statements to terminate the moment, is executed.
- Loop or switch ends abruptly when a break is encountered.
example :
while(a)
{ while (b)
{ if ( b == 10 )
break; }
} // break will bring us here.
Answered by
7
Answer:
a)continue
Explanation:
The continue statement abandons the current iteration of the loop and goes back to the beginning of the loop.
Not to be confused with the break statement which skips the loop all together.
Similar questions
World Languages,
4 months ago
World Languages,
4 months ago
History,
4 months ago
Math,
8 months ago