C-18-Q087mediumsingle_mcq
The pattern of using if together with break lets a programme leave the loop:
The pattern of using if together with break lets a programme leave the loop:
- aAlways at the same iteration
- bOnly when a specific condition is met during execution
- cNever
- dWithout checking any condition
ব্যাখ্যা
Pairing if with break makes the exit conditional: the loop continues normally until the tested condition becomes true, and only then does it stop. This gives controlled, condition-based termination rather than a fixed or unconditional exit.