wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

IOT Quiz

Total questions: 11

Worksheet time: 8mins

Name
Class
Date
1.

Enter Student Name and ID

4 lines
2.

What is the purpose of the void setup() function in the Blink example?

a)

To initialize the serial communication

b)

To set the LED pin as output

c)

To turn the LED on

d)

To turn the LED off

3.

What is the role of the pushButton variable in the Digital Read Serial example?

a)

It stores the pin number for the button

b)

It stores the state of the button

c)

It initializes the button

d)

It sets the button as input

4.

How does the Fading a LED example control the brightness of the LED?

a)

By using analogWrite to set brightness

b)

By using digitalWrite to turn it on and off

c)

By changing the resistance

d)

By changing the voltage

5.

What is the purpose of the microsecondsToInches function in the Ping Ultrasonic Range Finder example?

a)

To convert duration to inches

b)

To convert duration to centimeters

c)

To measure distance

d)

To initialize the sensor

6.

What happens when the sensorReading in the Detect a Knock example exceeds the threshold?

a)

The LED state toggles

b)

The sensor stops reading

c)

The program ends

d)

The serial communication stops

7.

What is the function of the loop() method in the Blink example?

a)

To set up the hardware

b)

To read sensor data

c)

To initialize variables

d)

To run the code repeatedly

8.

In the Detect a Knock example, what does the program do when a knock is detected?

a)

It stops all operations

b)

It sends a notification

c)

It toggles the LED state

d)

It resets the sensor

9.

What is the purpose of the pinMode function in the Digital Read Serial example?

a)

To write a value to the pin

b)

To read the pin state

c)

To initialize the serial communication

d)

To set the pin as input or output

10.

What is the significance of the loop() method in Arduino sketches?

a)

It sets up the hardware

b)

It runs continuously after setup()

c)

It initializes variables

d)

It runs once at the start

11.

What is the purpose of the digitalRead function in the Digital Read Serial example?

a)

To initialize the pin

b)

To set the pin mode

c)

To write a value to a pin

d)

To read the value from a pin