Jamal wants to create a program that will play music during the afternoon. Which kind of loop should be used in the program?

(1 point)

O while

• for

• during

• infinite

1 answer

To create a program that plays music during the afternoon, using a while loop would be appropriate. This loop can continuously check if the current time is within the afternoon hours, allowing the music to play as long as that condition is true.

So, the answer is: O while.