Pico W Sensors & I2C Quiz

Pico W Sensors & I2C Quiz

Test your knowledge of I2C wiring, common sensors, and OLED displays. — 6 questions

Question 1 of 6 Score: 0

About the Pico W Sensors & I2C Quiz

Test your knowledge of I2C wiring, common sensors, and OLED displays. 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 Sensors & I2C on Raspberry Pi Pico W guide and the Pico W Sensors & I2C 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. How many wires does I2C require between the Pico W and a sensor?

  1. 1
  2. 2
  3. 3
  4. 4
Show answer

Answer: B. 2
I2C uses two wires: SDA (data) and SCL (clock). Multiple devices share the same bus using unique addresses.

2. What does i2c.scan() return?

  1. The bus frequency
  2. A list of device addresses found on the I2C bus
  3. The sensor reading
  4. The available I2C ports
Show answer

Answer: B. A list of device addresses found on the I2C bus
i2c.scan() probes all 7-bit addresses (0߀“127) and returns a list of addresses that responded.

3. What is the typical I2C address of an SSD1306 OLED display?

  1. 0x68
  2. 0x77
  3. 0x3C
  4. 0x40
Show answer

Answer: C. 0x3C
SSD1306 OLED displays most commonly use I2C address 0x3C, though some modules can be configured to 0x3D.

4. What is the minimum recommended time between DHT22 measurements?

  1. 100 ms
  2. 500 ms
  3. 1 second
  4. 2 seconds
Show answer

Answer: D. 2 seconds
The DHT22 sensor needs at least 2 seconds between measurements for the internal capacitor to stabilise.

5. What must you call after drawing on an SSD1306 OLED to make it visible?

  1. oled.flush()
  2. oled.render()
  3. oled.show()
  4. oled.update()
Show answer

Answer: C. oled.show()
oled.show() pushes the in-memory framebuffer to the physical display over I2C. Without it nothing appears.

6. Why are pull-up resistors required on I2C SDA and SCL lines?

  1. To increase bus speed
  2. I2C uses open-drain outputs that can only pull low ߀” resistors pull the lines high
  3. To protect against overcurrent
  4. To enable multi-master mode
Show answer

Answer: B. I2C uses open-drain outputs that can only pull low ߀” resistors pull the lines high
I2C devices have open-drain outputs. Pull-up resistors hold the lines HIGH and allow devices to pull them LOW to communicate.

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