Free CompTIA ITF+ FC0-U61 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?

  • do-while loop that checks a condition unrelated to the iteration count after executing the block

  • for loop

  • switch statement evaluating a single case

  • if statement

  • while loop without a counter or condition that stops at 10

This question's topic:
CompTIA ITF+ FC0-U61 / 
Software Development Concepts
Your Score:

Check or uncheck an objective to set which questions you will receive.