What does the digitalWrite() function do in Arduino?

Grade 6

Quiz
•
Engineering
•
6th Grade
•
Hard
Mostafa Aly
Used 2+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Reads the value from a pin
Writes a digital value to a pin
Delays the program
Initializes the program
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which function is called only once at the start of an Arduino program?
void loop()
void setup()
digitalWrite()
delay()
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
In the context of Arduino, what does the delay() function do?
It stops the program
It pauses the program for a specified time
It initializes variables
It reads sensor data
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is the correct way to declare a pin as an output in void setup()?
pinMode(pin, INPUT);
pinMode(pin, OUTPUT);
digitalWrite(pin, HIGH);
delay(pin);
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
If you want to turn on an LED connected to pin 7, which command should you use?
digitalWrite(7, HIGH);
digitalWrite(7, LOW);
pinMode(7, HIGH);
delay(7);
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the purpose of the void loop() function in Arduino?
To execute code only once
To repeat the code continuously
To read input from sensors
To set up the initial conditions
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which unit is used to measure electric current?
Volt
Ampere
Ohm
Watt
Create a free account and access millions of resources
Similar Resources on Quizizz
13 questions
Unit 2 CA Review - Gr 6

Quiz
•
6th Grade
13 questions
Unit 2 CA Review - Gr 6

Quiz
•
6th Grade
9 questions
ICT Programming Lesson 5

Quiz
•
6th Grade - University
10 questions
EV3 App Basics

Quiz
•
6th Grade
13 questions
V-REP Simulation Quiz

Quiz
•
6th Grade
5 questions
ICT Programming & Logic Essentials - Lesson 7

Quiz
•
6th Grade
Popular Resources on Quizizz
15 questions
Multiplication Facts

Quiz
•
4th Grade
20 questions
Math Review - Grade 6

Quiz
•
6th Grade
20 questions
math review

Quiz
•
4th Grade
5 questions
capitalization in sentences

Quiz
•
5th - 8th Grade
10 questions
Juneteenth History and Significance

Interactive video
•
5th - 8th Grade
15 questions
Adding and Subtracting Fractions

Quiz
•
5th Grade
10 questions
R2H Day One Internship Expectation Review Guidelines

Quiz
•
Professional Development
12 questions
Dividing Fractions

Quiz
•
6th Grade
Discover more resources for Engineering
20 questions
Math Review - Grade 6

Quiz
•
6th Grade
5 questions
capitalization in sentences

Quiz
•
5th - 8th Grade
10 questions
Juneteenth History and Significance

Interactive video
•
5th - 8th Grade
12 questions
Dividing Fractions

Quiz
•
6th Grade
9 questions
1. Types of Energy

Quiz
•
6th Grade
20 questions
Parts of Speech

Quiz
•
3rd - 6th Grade
6 questions
Final Exam: Monster Waves

Quiz
•
6th Grade
10 questions
Final Exam Grandfather's Chopsticks

Quiz
•
6th Grade