ESP32 WiFi Quiz

ESP32 WiFi Quiz

Test your knowledge of WiFi modes, HTTP requests, and web servers. — 6 questions

Question 1 of 6 Score: 0

About the ESP32 WiFi Quiz

Test your knowledge of WiFi modes, HTTP requests, and web servers. 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 & Networking on ESP32 guide and the ESP32 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 WiFi.status() constant indicates the ESP32 is connected to an access point?

  1. WL_IDLE_STATUS
  2. WL_NO_SSID_AVAIL
  3. WL_CONNECTED
  4. WL_SCAN_COMPLETED
Show answer

Answer: C. WL_CONNECTED
WL_CONNECTED (value 3) is returned when the ESP32 has successfully connected to an AP.

2. What library do you include to make HTTP GET requests on the ESP32?

  1. <HTTPRequest.h>
  2. <WiFiHTTP.h>
  3. <HTTPClient.h>
  4. <ESP32HTTP.h>
Show answer

Answer: C. <HTTPClient.h>
HTTPClient.h is the library that provides the HTTPClient class for making HTTP requests over WiFi.

3. What IP address does the ESP32 typically assign in Access Point (AP) mode?

  1. 192.168.1.1
  2. 10.0.0.1
  3. 192.168.4.1
  4. 172.16.0.1
Show answer

Answer: C. 192.168.4.1
By default, the ESP32 AP assigns itself 192.168.4.1 as the gateway and serves DHCP from that subnet.

4. Which function must be called repeatedly in loop() to process web server requests?

  1. server.listen()
  2. server.process()
  3. server.handleClient()
  4. server.poll()
Show answer

Answer: C. server.handleClient()
server.handleClient() checks for incoming connections and dispatches registered route handlers.

5. What does WiFi.setAutoReconnect(true) do?

  1. Connects to the strongest available network
  2. Reconnects automatically if the WiFi connection drops
  3. Increases transmit power
  4. Disables sleep mode
Show answer

Answer: B. Reconnects automatically if the WiFi connection drops
setAutoReconnect(true) tells the WiFi driver to automatically attempt to reconnect if the connection is lost.

6. Which function returns the IP address assigned to the ESP32 in station mode?

  1. WiFi.gatewayIP()
  2. WiFi.softAPIP()
  3. WiFi.localIP()
  4. WiFi.subnetMask()
Show answer

Answer: C. WiFi.localIP()
WiFi.localIP() returns the IP address that the router DHCP server assigned to the ESP32.

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