Test your understanding of `loop()`, `for` loops, and repeated actions in Arduino
32-Lesson Course • Semester 1
What is the job of the Arduino `loop()` function?
When is a `for` loop especially useful?
In `for (int i = 0; i < 5; i++)`, what does `i++` do?
How many times does this loop run?for (int i = 0; i < 3; i++)
for (int i = 0; i < 3; i++)
In `for (int i = 0; i < 5; i++)`, which values does `i` take?
Why might you use a `for` loop in an LED blinking program?
What does this idea mean: “If the button is pressed, blink the LED three times”?
What happens when the loop condition becomes false?
Explain in your own words how Arduino `loop()` is different from `setup()`.
Describe a simple Arduino program that uses repetition. What repeats, how many times does it repeat, and what is the result?
These results have been automatically sent to your instructor.