Question: why pnp transistor is used?
Answer: PNP transistors are used to source current, i.e. current flows out of the collector. PNP transistors are used as switches. These are used in the amplifying circuits. PNP transistors are used when we need to turnoff something by push a button.