
Programming Concepts in Arduino
Authored by jesmar santillan
Computers
8th Grade
Used 1+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
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.
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Similar Resources on Wayground
10 questions
Working with tables
Quiz
•
5th - 12th Grade
11 questions
Cascading Style Sheets
Quiz
•
8th - 12th Grade
19 questions
Python Year 9 Quiz
Quiz
•
8th - 10th Grade
20 questions
Payment Gateways
Quiz
•
8th Grade
15 questions
Algorithms
Quiz
•
7th - 10th Grade
11 questions
What is a computer
Quiz
•
KG - University
13 questions
windows
Quiz
•
5th - 9th Grade
10 questions
CLASS 8 CODING
Quiz
•
8th Grade
Popular Resources on Wayground
7 questions
History of Valentine's Day
Interactive video
•
4th Grade
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
15 questions
Valentine's Day Trivia
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
Discover more resources for Computers
10 questions
Exploring Valentine's Day with Charlie Brown
Interactive video
•
6th - 10th Grade
18 questions
Valentines Day Trivia
Quiz
•
3rd Grade - University
10 questions
Valentine's Day History and Traditions
Interactive video
•
6th - 10th Grade
20 questions
Laws of Exponents
Quiz
•
8th Grade
11 questions
Valentines Day
Quiz
•
6th - 8th Grade
20 questions
Graphing Inequalities on a Number Line
Quiz
•
6th - 9th Grade
25 questions
7th Reading STAAR Vocabulary
Quiz
•
6th - 8th Grade
25 questions
Valentine's Day Trivia
Quiz
•
8th Grade