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)
Responses

float loop

float loop

condition-controlled loop

condition-controlled loop

count-controlled loop

count-controlled loop

binary loop

condition-controlled loop

A condition-controlled loop would be the right choice in this scenario because the loop will continue to iterate based on a condition being true or false. In this case, the condition is whether the user has input the correct answer to a trivia question. As long as the user does not provide the correct answer, the loop can repeat, prompting them again. Once the correct answer is provided, the condition would no longer be satisfied, and the loop can end.

The other loop types listed (float loop, count-controlled loop, and binary loop) either are not standard loop types or do not fit the criterion described. A "count-controlled loop" typically iterates a set number of times, which is not suitable if the number of repetitions depends on user input, and "float loop" and "binary loop" are not standard terms in programming for loop types.

Jasmine is creating a game where the same sequence will repeat four times. What kind of loop should be used for this feature of the game?

(1 point)
Responses

float loop

float loop

condition-controlled loop

condition-controlled loop

count-controlled loop

count-controlled loop

binary loop