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
10 questions
Soalan OBD dan MCS

Quiz
•
6th Grade
10 questions
1.3 Writing - Education & Training for Future Careers

Quiz
•
6th - 8th Grade
14 questions
Present perfect

Quiz
•
2nd Grade - University
14 questions
Titan Code

Quiz
•
6th Grade
10 questions
SKF1 INTRODUCTION TO COMPUTER

Quiz
•
6th Grade
13 questions
CÔNG NGHỆ

Quiz
•
5th Grade - University
Popular Resources on Quizizz
15 questions
Character Analysis

Quiz
•
4th Grade
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
10 questions
American Flag

Quiz
•
1st - 2nd Grade
20 questions
Reading Comprehension

Quiz
•
5th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
18 questions
Full S.T.E.A.M. Ahead Summer Academy Pre-Test 24-25

Quiz
•
5th Grade
14 questions
Misplaced and Dangling Modifiers

Quiz
•
6th - 8th Grade
Discover more resources for Engineering
14 questions
Misplaced and Dangling Modifiers

Quiz
•
6th - 8th Grade
20 questions
Final Exam Vocabulary

Quiz
•
6th Grade
11 questions
Decimal/fraction conversions quick check

Quiz
•
5th - 7th Grade
10 questions
Identifying equations

Quiz
•
KG - University
49 questions
How Well Do You Know Your 6th Grade Teachers?

Quiz
•
6th Grade
5 questions
Multiply Decimals

Lesson
•
5th - 6th Grade
10 questions
Adding and Subtracting Decimals

Quiz
•
6th Grade
33 questions
Mechanical Energy Transfer

Quiz
•
6th Grade