If the number of times that a loop repeats will be determined by whether the user inputs the correct answer to a trivia question, which kind of loop should be used?

(1 point)
• float loop
• condition-controlled loop
• count-controlled loop
• binary loop

1 answer

To determine the number of times a loop repeats based on whether the user inputs the correct answer to a trivia question, a condition-controlled loop should be used. This type of loop continues to execute as long as a certain condition is true (in this case, whether the answer is correct).

So, the correct choice is: • condition-controlled loop