CompTIA Tech+ FC0-U71 Practice Question
An IT technician is writing a program that needs to perform a task 10 times. Which of the following code structures should the technician use to repeat the task exactly 10 times?
if statement
while loop without a counter or condition that stops at 10
for loop
do-while loop that checks a condition unrelated to the iteration count after executing the block
switch statement evaluating a single case