Bird
0
0

Which Python library is commonly used to create a web server for controlling GPIO pins on Raspberry Pi?

easy🧠 Conceptual Q12 of 15
Raspberry Pi - Web Server and API
Which Python library is commonly used to create a web server for controlling GPIO pins on Raspberry Pi?
ANumPy
BPandas
CFlask
DMatplotlib
Step-by-Step Solution
Solution:
  1. Step 1: Identify web server libraries

    Flask is a lightweight Python web framework used to build web servers.
  2. Step 2: Match Flask with GPIO control

    Flask can handle web requests to turn GPIO pins on or off via buttons on a webpage.
  3. Final Answer:

    Flask -> Option C
  4. Quick Check:

    Flask = web server for GPIO control [OK]
Quick Trick: Flask is the simple web server for Python GPIO control [OK]
Common Mistakes:
MISTAKES
  • Choosing data libraries like NumPy or Pandas
  • Confusing plotting library Matplotlib with web server

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Raspberry Pi Quizzes