
Programming Concepts in Arduino

Quiz
•
Computers
•
8th Grade
•
Hard
jesmar santillan
Used 1+ times
FREE Resource
15 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What function is used to configure a pin as an input or output in Arduino?
digitalRead()
pinMode()
digitalWrite()
analogRead()
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
In the code digitalRead(2), what does the number 2 represent?
The button state
The LED pin
The pin number connected to the button
The value to write to the pin
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the purpose of a pull-down resistor in a button circuit?
To increase the brightness of the LED
To keep the button pin in a known state when not pressed
To prevent the button from bouncing
To reduce the current flowing through the LED
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which function is used to turn an LED on or off in Arduino?
pinMode()
digitalWrite()
delay()
digitalRead()
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
If a button is pressed, what value is read using digitalRead()?
0
1
LOW
HIGH
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
In the code snippet below, what is the purpose of the if statement?
if (buttonState == HIGH) {
digitalWrite(ledPin, HIGH);
}
To configure the LED pin as an output
To read the button state
To turn on the LED when the button is pressed
To toggle the state of the button
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will happen if a delay is added inside the loop function?
It will increase the brightness of the LED.
It will prevent the button from working.
It will slow down the execution of the loop.
It will turn off the LED automatically.
Create a free account and access millions of resources
Similar Resources on Wayground
14 questions
Arduino P-uur - deel 3

Quiz
•
6th - 10th Grade
16 questions
Arduino Vocabulary

Quiz
•
6th - 8th Grade
13 questions
CODING QUIZZ

Quiz
•
8th Grade
15 questions
Arduino Lesson 7 Starter

Quiz
•
8th Grade
13 questions
NRW 2022

Quiz
•
7th - 12th Grade
10 questions
Lesson 2 Formative Assessment

Quiz
•
6th - 8th Grade
12 questions
04 Traffic Lights (PICO)

Quiz
•
8th Grade
18 questions
Microbits - Inputs & Outputs Survival Starter

Quiz
•
8th Grade
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
10 questions
UPDATED FOREST Kindness 9-22

Lesson
•
9th - 12th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
20 questions
US Constitution Quiz

Quiz
•
11th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Computers
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
18 questions
Company Logos

Quiz
•
6th - 8th Grade
10 questions
Exploring Cybersecurity Techniques and Threats

Interactive video
•
6th - 10th Grade
10 questions
Understanding the Internet and Data Transmission

Interactive video
•
7th - 12th Grade
25 questions
How to Email a Teacher- https://youtu.be/NioeNhfpVfI

Quiz
•
6th - 8th Grade
20 questions
Computer Hardware

Quiz
•
6th - 8th Grade
21 questions
Gear Ratio Practice

Quiz
•
6th - 8th Grade