
Programming Concepts in Arduino
Quiz
•
Computers
•
8th Grade
•
Practice Problem
•
Hard
jesmar santillan
Used 1+ times
FREE Resource
Enhance your content in a minute
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
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
13 questions
ICT and Retail Industry
Quiz
•
8th - 12th Grade
10 questions
Ms Excel - Grade 8
Quiz
•
8th Grade
15 questions
Coding Quiz
Quiz
•
6th - 10th Grade
10 questions
Image File Formats
Quiz
•
KG - 9th Grade
20 questions
Design your website
Quiz
•
7th - 12th Grade
20 questions
Artificial Intelligence and SketchUp
Quiz
•
8th - 10th Grade
10 questions
NETIQUETTE
Quiz
•
7th - 8th Grade
15 questions
Internet Basics
Quiz
•
5th Grade - University
Popular Resources on Wayground
5 questions
This is not a...winter edition (Drawing game)
Quiz
•
1st - 5th Grade
15 questions
4:3 Model Multiplication of Decimals by Whole Numbers
Quiz
•
5th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
10 questions
The Best Christmas Pageant Ever Chapters 1 & 2
Quiz
•
4th Grade
12 questions
Unit 4 Review Day
Quiz
•
3rd Grade
10 questions
Identify Iconic Christmas Movie Scenes
Interactive video
•
6th - 10th Grade
20 questions
Christmas Trivia
Quiz
•
6th - 8th Grade
18 questions
Kids Christmas Trivia
Quiz
•
KG - 5th Grade
