Pico W WiFi Quiz
Pico W WiFi Quiz
Test your knowledge of network mode, urequests, and AP configuration. — 6 questions
About the Pico W WiFi Quiz
Test your knowledge of network mode, urequests, and AP configuration. This quiz has 6 multiple-choice questions. Each question has one correct answer, and you see an explanation straight after you answer, so you learn from every question — including the ones you get wrong. There is no time limit and nothing to sign up for; your answers are not stored.
The questions follow the material in the WiFi on Raspberry Pi Pico W guide and the Pico W WiFi Cheatsheet. Read them first if you want to prepare, or take the quiz cold to find the gaps in what you know.
Questions in this quiz
Preview the questions below. Each answer and its explanation are hidden until you choose to reveal them, so you can still take the quiz above without spoilers.
1. Which network interface constant is used for connecting the Pico W to an existing router?
Show answer
Answer: B. network.STA_IF
STA_IF (station interface) is used when connecting to an access point. AP_IF creates an access point.
2. What status code indicates the Pico W is successfully connected to WiFi?
Show answer
Answer: C. 3
Status 3 means connected. Status values below 0 indicate errors (e.g., -2 = no AP found, -3 = auth failure).
3. How do you get the IP address assigned to the Pico W in station mode?
Show answer
Answer: C. wlan.ifconfig()[0]
wlan.ifconfig() returns a tuple (ip, subnet, gateway, dns). Index [0] is the assigned IP address.
4. Why should you always call r.close() after a urequests call?
Show answer
Answer: B. To free memory ߀” MicroPython has limited RAM
The Pico W has only 264 KB of RAM. Failing to close HTTP responses will quickly exhaust memory and cause crashes.
5. What security constant enables WPA2 on a Pico W access point?
Show answer
Answer: D. security=4
security=4 enables WPA2-PSK on the Pico W AP interface. Without it the AP may be open or use weaker encryption.
6. What is the benefit of storing WiFi credentials in secrets.py?
Show answer
Answer: B. It keeps credentials out of source code shared on GitHub
Separating secrets into their own file makes it easy to add secrets.py to .gitignore so credentials are never accidentally committed.
How to use this quiz
- Answer every question before reading the explanations below — retrieving an answer from memory is what makes it stick.
- Note the questions you missed and revisit the matching section of the guide or cheatsheet.
- Retake the quiz a day or two later. Spaced repetition is one of the most reliable ways to remember technical details.