
2. User Input-Controlled LED
Quiz
•
Computers
•
6th - 8th Grade
•
Practice Problem
•
Easy
Robotic Schools
Used 12+ times
FREE Resource
Enhance your content in a minute
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
1 min • 10 pts
What voltage does a Raspberry Pi GPIO pin output when set to HIGH?
1.8V
3.3V
5V
Depends on the USB power supply
2.
MULTIPLE CHOICE QUESTION
1 min • 10 pts
Which Python function pauses the program and waits for the user to type something?
input()
print()
scan()
sleep()
3.
MULTIPLE CHOICE QUESTION
1 min • 10 pts
🖥️ Which code snippet correctly turns the LED OFF when the user types "off"?
4.
MULTIPLE CHOICE QUESTION
1 min • 10 pts
Which line correctly takes user input and makes it lowercase so the program works with “ON”, “on”, or “On”?
5.
MULTIPLE CHOICE QUESTION
1 min • 10 pts
A student wrote this code, but the LED stays ON forever even after typing off.
Which line is written incorrectly?
6.
MULTIPLE CHOICE QUESTION
1 min • 10 pts
Why do we need a resistor in series with the LED when connecting it to a Raspberry Pi GPIO pin?
To increase brightness of the LED
To limit current and protect the GPIO pin
To reduce voltage from 5V to 3.3V
To store charge like a capacitor
7.
MULTIPLE CHOICE QUESTION
1 min • 10 pts
What will happen if you connect an LED in reverse (cathode to GPIO21 and anode to GND) on the Raspberry Pi?
The LED will glow dimly
The LED will not glow at all
The LED will glow normally
The LED will burn out immediately
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
11 questions
What is a computer
Quiz
•
KG - University
10 questions
ความปลอดภัยเทคโนโลยีสารสนเทศ
Quiz
•
7th Grade
10 questions
CLASS 8 CODING
Quiz
•
8th Grade
9 questions
Introduction To Python
Quiz
•
6th - 8th Grade
15 questions
BTT
Quiz
•
4th - 12th Grade
10 questions
Computer Devices and its Operating System
Quiz
•
4th - 8th Grade
10 questions
Program Remedial Penilaian Harian 1 Genap 2023/2024
Quiz
•
7th Grade
15 questions
7ICT - Algorithms Revision Quiz
Quiz
•
7th 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
