
Arduino - Controlling multiple lights

Quiz
•
Computers
•
12th Grade
•
Hard
Roy Nepomuceno
Used 1+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
10 sec • 1 pt
What does the digitalWrite function do?
Initializes a digital pin for input or output.
Toggles the state of an analog pin.
Sets the state of a digital pin to HIGH or LOW.
Reads the value of a digital pin.
Answer explanation
The digitalWrite function is used to set the state of a digital pin to either HIGH (on) or LOW (off). This is essential for controlling digital outputs in microcontroller programming.
2.
MULTIPLE CHOICE QUESTION
10 sec • 1 pt
What are the two possible values that can be used with digitalWrite?
TRUE, FALSE
ON, OFF
ENABLE, DISABLE
HIGH, LOW
Answer explanation
The correct values for digitalWrite in Arduino programming are HIGH and LOW. These represent the two states of a digital pin, where HIGH means the pin is on (5V) and LOW means it is off (0V).
3.
MULTIPLE CHOICE QUESTION
10 sec • 1 pt
What does setting a pin to LOW represent in volts?
5 volts
3.3 volts
1.5 volts
0 volts
4.
MULTIPLE CHOICE QUESTION
10 sec • 1 pt
What voltage does setting a pin to HIGH typically represent on an Arduino Uno?
3.3V
5V
1.5V
12V
5.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
How would you turn an LED ON using digitalWrite?
digitalWrite(12, HIGH);
digitalWrite(13, OFF);
digitalWrite(13, HIGH);
digitalWrite(13, LOW);
6.
MULTIPLE CHOICE QUESTION
10 sec • 1 pt
What is the syntax for using digitalWrite?
digitalWrite(value, pin);
digitalWrite(pin, value);
writeDigital(pin, value);
setDigital(pin, value);
7.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
What happens when you set a pin to LOW?
The pin is set to a low voltage level, usually 0 volts.
The pin starts to emit a signal continuously.
The pin is set to a high voltage level, usually 5 volts.
The pin becomes disconnected from the circuit.
Answer explanation
Setting a pin to LOW means it is connected to a low voltage level, typically 0 volts. This is used to indicate an off state or to ground the pin, contrasting with a HIGH state which would be around 5 volts.
Create a free account and access millions of resources
Similar Resources on Wayground
15 questions
Quiz Digital Forensics

Quiz
•
1st - 12th Grade
10 questions
Email Quiz - PWHS

Quiz
•
1st - 12th Grade
10 questions
UJi Pemahaman Wokwi dan perintah sederhana pemrograman arduino

Quiz
•
12th Grade
15 questions
Arduino Level 2

Quiz
•
12th Grade
10 questions
UNOARDUINO

Quiz
•
12th Grade
15 questions
Quiz Arduino & Buzzer

Quiz
•
9th - 12th Grade
10 questions
MyReskill IoT

Quiz
•
10th Grade - Professi...
14 questions
Unit 6 Microcontrollers Intro 2022

Quiz
•
11th Grade - University
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
20 questions
Brand Labels

Quiz
•
5th - 12th Grade
15 questions
Core 4 of Customer Service - Student Edition

Quiz
•
6th - 8th Grade
15 questions
What is Bullying?- Bullying Lesson Series 6-12

Lesson
•
11th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade