A transistor is a semiconductor that allows current to flow through it under certain conditions, and cuts current off when other conditions are present. Transistors are commonly used as either a switch or a current amplifier. You can test a transistor with a multimeter that has a diode test function.