
Push Button LED-digitalRead and digitalWrite
Authored by shumaila shereen
Computers
6th - 8th Grade

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does pinMode(2, INPUT); do?
It turns on the LED.
It tells the computer that pin 2 is connected to a button.
It makes the button glow.
It turns off the LED.
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What happens when the button is pressed?
The LED turns off.
The LED turns on.
The button glows.
Nothing happens.
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does digitalWrite(13, HIGH); do?
It turns off the LED.
It checks if the button is pressed.
It turns on the LED.
It makes the button glow.
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the purpose of delay(15);?
To make the LED blink faster.
To add a tiny pause so the computer doesn’t check too fast.
To turn off the button.
To make the LED brighter.
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does button_state = digitalRead(2); do?
It turns on the LED.
It checks if the button is pressed or not.
It makes the button glow.
It turns off the LED.
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the role of the LED in this code?
To act as a button.
To light up when the button is pressed.
To check if the button is working.
To make the button glow.
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does if (button_state == HIGH) mean?
If the button is not pressed.
If the button is pressed.
If the LED is off.
If the LED is on.
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
Revision Quiz 2 - Information Technology
Quiz
•
7th - 8th Grade
10 questions
Arduino
Quiz
•
7th - 12th Grade
15 questions
Computer Parts Q1 Lesson 1-2
Quiz
•
8th Grade
10 questions
Word 2016 Basics - Saving Document, Page Layout, Header & Foot
Quiz
•
7th Grade
10 questions
HT3.2- Validation and Reliability
Quiz
•
8th Grade - University
10 questions
HWK 10- Fake News and Images
Quiz
•
8th Grade
15 questions
History of Computers
Quiz
•
6th - 12th Grade
15 questions
Networking Quiz
Quiz
•
8th - 9th Grade
Popular Resources on Wayground
8 questions
2 Step Word Problems
Quiz
•
KG - University
20 questions
Comparing Fractions
Quiz
•
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
10 questions
Latin Bases claus(clois,clos, clud, clus) and ped
Quiz
•
6th - 8th Grade
22 questions
fractions
Quiz
•
3rd Grade
7 questions
The Story of Books
Quiz
•
6th - 8th Grade