the fig shows a basic NPN transistor. A transistor is basically Diode and it operation is mainly as switch i.e it allows signal to flow depending upon certain condition on it three terminal. Above figure is a simple BJT i.e Bipoler transistor, transistor's used in manufacturing of logic gates ( And, Or Nor ect.) now are C-MOS transistors.