A program will give the player five chances to guess a number. The program will need to use which of the following? Choose one answer

an array
a loop
a binary language
an object

1 answer

The program will need to use a loop.

A loop is essential in this scenario because it allows the program to provide the player with five chances to guess the number by iterating through a set of instructions for each guess. An array could be used to store guesses, but it is not strictly necessary for just counting the number of guesses. A binary language is not relevant in this context, and while an object could be used, it is not required for the basic functionality described.