Quiz on Lua While Loop



1. What is the purpose of a while loop in Lua?
2. What keyword is used to start a while loop in Lua?
3. What happens if the condition in a while loop is false from the beginning?
4. Which of the following is a correct syntax for a while loop in Lua?
5. Can you use break to exit a while loop in Lua?

Advertisements