
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
10 questions
Chapter 2: Computer systems
Quiz
•
7th - 11th Grade
15 questions
Review
Quiz
•
7th Grade
11 questions
สัญลักษณ์พื้นฐานของผังงานและรูปแบบของผังงาน
Quiz
•
6th - 8th Grade
10 questions
Dispositivos de entrada: Cámara y Scanner
Quiz
•
5th - 10th Grade
12 questions
Il Computer
Quiz
•
8th Grade
11 questions
Python тіліндегі сызықтық алгоритмдерде өрнектерді және функциял
Quiz
•
8th Grade
15 questions
LEDs on micro:bit
Quiz
•
8th Grade
15 questions
Ulangan Harian Kls 8
Quiz
•
8th 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
