Pico W WiFi Quiz

Pico W WiFi Quiz

Test your knowledge of network mode, urequests, and AP configuration. — 6 questions

Question 1 of 6 Score: 0

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?

  1. network.AP_IF
  2. network.STA_IF
  3. network.CLIENT_IF
  4. network.WIFI_IF
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?

  1. 0
  2. 1
  3. 3
  4. -1
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?

  1. wlan.ip()
  2. wlan.getIP()
  3. wlan.ifconfig()[0]
  4. network.localIP()
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?

  1. To commit the data
  2. To free memory ߀” MicroPython has limited RAM
  3. To flush the response
  4. To end the WiFi connection
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?

  1. security=1
  2. security=2
  3. security=3
  4. security=4
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?

  1. It encrypts the password
  2. It keeps credentials out of source code shared on GitHub
  3. It makes connection faster
  4. It enables WPA3
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.

Related