1. How do you discover that you have an infinite loop in your code?
❑ The code does not compile.
❑ The code compiles and runs but gives the wrong result.
❑ The code runs forever.
❑ The code compiles, but there is a run-time error.
2. If you want to execute a loop body at least once, what type of loop would you use?
❑ for loop
❑ while loop
❑ do/while loop
❑ none of the above
3. What best describes a for loop?
❑ It is a count-controlled loop.
❑ It is an event-controlled loop.
❑ It is a sentinel-controlled loop.
4. You can simulate a for loop with a while loop.
5. What is the output ...