Search Header Logo

IOT Quiz

Authored by Mohamed Magdy

Other

University

Used 7+ times

IOT Quiz
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

11 questions

Show all answers

1.

OPEN ENDED QUESTION

3 mins • Ungraded

Enter Student Name and ID

Evaluate responses using AI:

OFF

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

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

To initialize the serial communication

To set the LED pin as output

To turn the LED on

To turn the LED off

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

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

It stores the pin number for the button

It stores the state of the button

It initializes the button

It sets the button as input

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

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

By using analogWrite to set brightness

By using digitalWrite to turn it on and off

By changing the resistance

By changing the voltage

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

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

To convert duration to inches

To convert duration to centimeters

To measure distance

To initialize the sensor

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

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

The LED state toggles

The sensor stops reading

The program ends

The serial communication stops

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

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

To set up the hardware

To read sensor data

To initialize variables

To run the code repeatedly

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?