Lesson 9 Post-Test
1. What component is used to detect user input in this project?
Push button
Resistor
Capacitor
2. What is the purpose of the 10,000 ohm resistor in the button circuit?
Acts as a pull-up or pull-down resistor
Limits current to the LED
Provides power to the circuit
3. Which resistor value should be used with the LED to protect it?
220 ohms
10,000 ohms
0 ohms
4. What does a pull-up resistor do?
Keeps the input HIGH when button is not pressed
Sends signal to ground
Turns on the LED
5. What happens when the button is pressed with a pull-up resistor?
The input pin goes LOW
The LED flashes
The resistor changes value
6. What is the default state of a pin using a pull-down resistor?
LOW
HIGH
Floating
7. What can you do in code when the button is pressed?
Turn on or off LEDs
Power the Arduino
Disconnect the ground
8. Which function would you use to check if a button is pressed?
digitalRead()
analogWrite()
Serial.begin()
9. What type of component is a push button?
Input
Output
Sensor
10. How could you make LEDs flash when the button is pressed?
Use a loop with digitalWrite() and delay()
Remove the button from the circuit
Disconnect the LED
Submit Answers