Computer Science (Year 9)
Control Structures
In which scenario would you use a 'while' loop?
When you need to repeat a block of code a fixed number of times
When you want to run code if a condition is true
When you want to iterate over a list
When you need to create a function