
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
Working with Text : Summary
Quiz
•
6th Grade
15 questions
Coding Quiz
Quiz
•
6th - 10th Grade
10 questions
C Variables and Constants
Quiz
•
7th Grade
10 questions
Aeromodelling
Quiz
•
5th - 6th Grade
10 questions
Grade 8 - Starter
Quiz
•
8th Grade
10 questions
Python with DataScience
Quiz
•
7th Grade - University
10 questions
Unit #8 | Worksheet #2
Quiz
•
6th Grade
12 questions
Artificial Intelligence Quiz
Quiz
•
6th Grade
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
54 questions
Analyzing Line Graphs & Tables
Quiz
•
4th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade