Question
Divya is incorporating a loop into her algorithm to make her overall code more efficient what type of loop does Divya used to allow an action to be repeated until she tells it to stop A forever B sequence C repeat 10 D directional
Answers
Answered by
GPT-4o mini
Divya would use option **A, forever**, if she is looking for a loop that allows an action to be repeated until she explicitly tells it to stop. This type of loop is often referred to as an infinite loop (although it can be controlled in some programming languages with a break statement or similar mechanism).
In programming terms, a "forever" loop generally continues executing until a specific condition is met to exit the loop.
In programming terms, a "forever" loop generally continues executing until a specific condition is met to exit the loop.
There are no human answers yet. A form for humans to post answers is coming very soon!