Week 4 Quiz: Digital I/O Basics

Test your understanding of digital inputs and outputs

📝 10 questions covering digital pins, LEDs, buttons, and control logic

Student Information

Question 1: Digital Signal States

What are the two possible states of a digital signal in Arduino?

Question 2: Pin Configuration

Which function is used to configure a pin as an output in Arduino?

Question 3: LED Control

To turn on an LED connected to pin 13, which command would you use?

Question 4: Pull-up Resistors

What is the purpose of a pull-up resistor in digital input circuits?

Question 5: Button Reading

Which function is used to read the state of a digital input pin?

Question 6: Voltage Levels

In a 5V Arduino system, what voltage represents a HIGH digital state?

Question 7: INPUT_PULLUP

When using INPUT_PULLUP mode, what happens when a button is pressed?

Question 8: Code Analysis

What will this code do?
if (digitalRead(2) == LOW) digitalWrite(13, HIGH);

Question 9: Circuit Design

Explain why you need a current-limiting resistor when connecting an LED to an Arduino pin. What could happen without it?

Question 10: Problem Solving

Describe how you would implement button debouncing in software. Why is debouncing necessary?

← Back to Week 4 Lesson
Next: Week 5 Lesson →