What is the purpose of the pinMode() function in Arduino?

Arduino Functions and Circuits Quiz

Quiz
•
Computers
•
10th Grade
•
Medium
Aigerim Zholochieva
Used 2+ times
FREE Resource
9 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
To set a pin as input or output
To initialize the LED
To connect the LED to the ground
To send a signal to the LED
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does the digitalWrite() function do?
It reads the status of the LED
It sets the voltage level of the specified pin to HIGH or LOW
It turns off the Arduino board
It loops the code until the LED is on
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How long will the red light stay on in the traffic light program?
5 seconds
10 seconds
2 seconds
3 seconds
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the purpose of using a resistor with the LEDs in the circuit?
To increase the voltage to the LED
To limit the current going to the LED and prevent damage
To make the LED brighter
To help the Arduino recognize the LED
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do you make an LED blink in the program?
Use the delay() function inside a loop
Use the pinMode() function
Use the analogWrite() function
Connect the LED to a switch
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What would happen if you did not use the resistors in the circuit with the LEDs?
The LEDs would blink faster.
The LEDs might burn out because too much current would flow through them.
The LEDs would be dimmer.
Nothing would change, the LEDs would work fine.
7.
OPEN ENDED QUESTION
3 mins • 1 pt
Explain what happens when you run the following code snippet in the traffic light program:
Evaluate responses using AI:
OFF
8.
OPEN ENDED QUESTION
3 mins • 1 pt
Which lines of the code are initializes the pins for the red, yellow, and green LEDs.
Evaluate responses using AI:
OFF
9.
OPEN ENDED QUESTION
3 mins • 1 pt
Which part of the code lets the red light stay on for 10 seconds.
Evaluate responses using AI:
OFF
Similar Resources on Quizizz
7 questions
Lesson 2: Arduino Basics

Quiz
•
9th - 12th Grade
10 questions
Evaluación - 26-04-2021 - 3B

Quiz
•
9th - 11th Grade
10 questions
3P_Diseño_Trimestral

Quiz
•
10th Grade
9 questions
Projeto de Contador de Pessoas com Display de 7 Segmentos

Quiz
•
9th Grade - University
10 questions
ROBO EF A15M1 Programação de Semáforo com Arduino

Quiz
•
10th Grade
10 questions
10. Sınıf 2.2 Yazılı Sınavı Öncesi Çalışma Soruları

Quiz
•
10th Grade
10 questions
Arduino X-3

Quiz
•
9th - 12th Grade
10 questions
Arduino

Quiz
•
7th - 12th Grade
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 Computers
17 questions
Chapter 12 - Doing the Right Thing

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

Quiz
•
9th - 12th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Taxes

Quiz
•
9th - 12th Grade
17 questions
Parts of Speech

Quiz
•
7th - 12th Grade
20 questions
Chapter 3 - Making a Good Impression

Quiz
•
9th - 12th Grade
20 questions
Inequalities Graphing

Quiz
•
9th - 12th Grade
10 questions
Identifying equations

Quiz
•
KG - University