CompTIA ITF+ FC0-U61 Practice Question
In setting up a website's backend server, the developer wants to run a specific task 10 times. Which structure would be most appropriate to use in this scenario?
A
while
loop that continues until an external condition changesA
for
loop that iterates 10 timesAn
if
statement that checks if the task has been done 10 timesA
do-while
loop that executes at least once and then checks a condition