How a transistor used in a circuit as a switch?

A: the switching refers to generating '1' '0' but they can be used to switch a load off on. basically the transistor diodes are forced to forward bias at that time both diodes are forward conducting and current can flow both direction therefore the term switch