Bruno is asked to create a program that will require the user to enter a passcode. If the wrong passcode is entered, the user can try again until they get it right. What kind of loop should be created for this?

(1 point)

• binary loop

• condition-controlled loop

• count-controlled loop

• interface loop

1 answer

The appropriate type of loop for Bruno's program, which allows the user to enter a passcode and try again if the wrong one is entered, is a condition-controlled loop.

This type of loop continues to run as long as a certain condition (in this case, entering the correct passcode) is not met.