Test your understanding of digital inputs and outputs
📝 10 questions covering digital pins, LEDs, buttons, and control logic
What are the two possible states of a digital signal in Arduino?
Which function is used to configure a pin as an output in Arduino?
To turn on an LED connected to pin 13, which command would you use?
What is the purpose of a pull-up resistor in digital input circuits?
Which function is used to read the state of a digital input pin?
In a 5V Arduino system, what voltage represents a HIGH digital state?
When using INPUT_PULLUP mode, what happens when a button is pressed?
What will this code do?if (digitalRead(2) == LOW) digitalWrite(13, HIGH);
if (digitalRead(2) == LOW) digitalWrite(13, HIGH);
Explain why you need a current-limiting resistor when connecting an LED to an Arduino pin. What could happen without it?
Describe how you would implement button debouncing in software. Why is debouncing necessary?
These results have been automatically sent to your instructor.