Expt 1 IoT LAB

Expt 1 IoT LAB

University

12 Qs

quiz-placeholder

Similar activities

COSC 85B PART 1

COSC 85B PART 1

University

16 Qs

Intermediate Robotics Programming

Intermediate Robotics Programming

University - Professional Development

16 Qs

ETRO1723 - Control systems

ETRO1723 - Control systems

University

7 Qs

Microprocessor

Microprocessor

University

15 Qs

Arduino - Contador

Arduino - Contador

9th Grade - University

11 Qs

Arduino Programming Quiz

Arduino Programming Quiz

University

13 Qs

Arduino Push button

Arduino Push button

University

15 Qs

TDC1231 Lec4 Quiz

TDC1231 Lec4 Quiz

KG - University

15 Qs

Expt 1 IoT LAB

Expt 1 IoT LAB

Assessment

Quiz

Computers

University

Hard

Created by

Ashwini S R

FREE Resource

12 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

What does the digitalWrite function do in Arduino programming?

Reads the state of a digital pin

Sets the pin mode as an output

Writes a HIGH voltage to a digital pin

Writes a LOW voltage to a digital pin

2.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

What is the purpose of the delay function in Arduino programming?

Pauses the serial communication

Delays the input from a sensor

Stops the program execution for a specified time

Generates a random delay

3.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

What is the role of the buttonState variable in the given code?

It determines the IR sensor value

It controls the delay time

It holds the state of the pushbutton

It stores the LED pin number

4.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

What does the digitalRead function do in the given code?

Sets the pin mode as an input

Writes a LOW voltage to a digital pin

Writes a HIGH voltage to a digital pin

Reads the state of a digital pin

5.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

What is the purpose of the Serial.begin function in the given code?

Starts the serial communication

Turns on the LED

Initializes the IR sensor pin

Begins the loop function

6.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

What is the purpose of the tone function in the provided code?

Produces a random tone

Plays a tone on the buzzer

Sets the pin mode as an output

Controls the LED brightness

7.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

What is the role of the buzzerPin variable in the given code?

It defines the pin to which the buzzer is connected

It determines the IR sensor value

It holds the state of the pushbutton

It stores the LED pin number

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?