NEW
Font size
WorksheetsArduino Quiz 2
Total questions: 10
Worksheet time: 8mins
is an iterative statement that allows the Arduino to repeatedly execute lines of code in a loop a specified number of times.
FOR
While
DO WHile
foreach
other ways to structureiterative loops. Where the if statement executed a statement once if a condition was met, and the for loop cycles through a specified number of times
FOR
While
DO WHile
foreach
is like a modified while statement in that it executes a line or lines of code and then tests for a condition at the end of the loop rather than the beginning before deciding to loop to the beginning again or not.
FOR
While
DO WHile
foreach
is like a really nifty version of the if statement in that it can execute one or more blocks of code, depending on a range of conditions.
Switch
Break
continue
case
can be used inside other control statements to immediately end the loop or statement.
Switch
Break
continue
case
does not exit or quit an iterative loop like break does, but rather it skips over any remaining statements inside the loop and goes on to the next repetition of the loop.
Switch
Break
continue
case
the simplest of the control structures and is among the most prominent method for Arduino decision making.
If
const
integer
signed variables-
variable qualifier makes the value of a variable a read-only constant that cannot be changed once the value has been assigned.
If
const
integer
signed variables-
Arduino’s primary variable data type for storing numbers/ it can be used to store numerical values between -32,768 and 32,767.
If
const
integer
signed variables-
Numeric data types a can express numbers with a negative value.
If
const
integer
signed variables
