
Push Button LED-digitalRead and digitalWrite

Quiz
•
Computers
•
6th - 8th Grade
•
Hard
shumaila shereen
FREE Resource
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.
Create a free account and access millions of resources
Similar Resources on Wayground
10 questions
Input, Output, Storage

Quiz
•
6th - 8th Grade
11 questions
Control Systems Quiz

Quiz
•
4th Grade - University
14 questions
Python Turtle - MCA Year 7

Quiz
•
7th Grade
15 questions
Pop Quiz #3

Quiz
•
6th Grade
15 questions
App Lab

Quiz
•
6th - 9th Grade
7 questions
5. RGB Colour switcher

Quiz
•
1st - 10th Grade
10 questions
Microbit Lesson 1

Quiz
•
7th Grade
10 questions
Electronics

Quiz
•
7th - 9th 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
8 questions
Time Management

Quiz
•
6th Grade
18 questions
Digital Footprint

Quiz
•
6th Grade
20 questions
typing

Quiz
•
6th 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