Programming (Year 11)
Loops
In which of the following scenarios would you use a 'while' loop?
When you know the number of iterations beforehand.
When you need to iterate until a condition is false.
When you want to iterate over an array.
When you want to execute a block of code once.