Question: What is the function of a pull-up resistor in a switch circuit?
Options:
Correct Answer: To ensure a defined logic level when the switch is open
Solution:
A pull-up resistor ensures that a defined logic level (high) is present when the switch is open.