Bird
0
0

What does the GPIO.output(pin, GPIO.HIGH) command do in a Raspberry Pi LED blink program?

easy📝 Conceptual Q1 of 15
Raspberry Pi - Platform
What does the GPIO.output(pin, GPIO.HIGH) command do in a Raspberry Pi LED blink program?
ATurns the LED off by stopping voltage to the pin
BTurns the LED on by sending voltage to the pin
CSets the pin as an input to read sensor data
DResets the GPIO pin to default state
Step-by-Step Solution
Solution:
  1. Step 1: Understand GPIO.output function

    The GPIO.output function controls the voltage level on a GPIO pin.
  2. Step 2: Effect of GPIO.HIGH on LED

    Setting the pin to GPIO.HIGH sends voltage, turning the LED on.
  3. Final Answer:

    Turns the LED on by sending voltage to the pin -> Option B
  4. Quick Check:

    GPIO.output with GPIO.HIGH = LED ON [OK]
Quick Trick: GPIO.HIGH means ON voltage to the pin [OK]
Common Mistakes:
  • Confusing HIGH with LOW
  • Thinking it sets pin as input
  • Assuming it resets pin state

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Raspberry Pi Quizzes