wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

Arduino Quiz 2

Total questions: 10

Worksheet time: 8mins

Name
Class
Date
1.

is an iterative statement that allows the Arduino to repeatedly execute lines of code in a loop a specified number of times.

a)

FOR

b)

While

c)

DO WHile

d)

foreach

2.

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

a)

FOR

b)

While

c)

DO WHile

d)

foreach

3.

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.

a)

FOR

b)

While

c)

DO WHile

d)

foreach

4.

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.

a)

Switch

b)

Break

c)

continue

d)

case

5.

can be used inside other control statements to immediately end the loop or statement.

a)

Switch

b)

Break

c)

continue

d)

case

6.

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.

a)

Switch

b)

Break

c)

continue

d)

case

7.

the simplest of the control structures and is among the most prominent method for Arduino decision making.

a)

If

b)

const

c)

integer

d)

signed variables-

8.

variable qualifier makes the value of a variable a read-only constant that cannot be changed once the value has been assigned.

a)

If

b)

const

c)

integer

d)

signed variables-

9.

Arduino’s primary variable data type for storing numbers/ it can be used to store numerical values between -32,768 and 32,767.

a)

If

b)

const

c)

integer

d)

signed variables-

10.

Numeric data types a can express numbers with a negative value.

a)

If

b)

const

c)

integer

d)

signed variables