The resistor is an electrical component that is having two terminals used for either limiting or regulating the electric current flow in electrical circuits. The two types of resistors are linear resistors, non-linear resistors. If the resistor value changes with a change in applied voltage, the temperature is a linear resistor and if it is independent of ohms law, then it is the non-linear resistor.