Q: What is a resistor and what is its function?

A: A resistor is an electronic component that restricts the flow of electric current in a circuit. It is designed to have a specific resistance value, measured in ohms (Ω). The primary function of a resistor is to control the amount of current flowing through a circuit, limit voltage levels, and provide stability and protection to other components. It dissipates electrical energy in the form of heat.