Semiconductors are a special class of elements having a conductivity between that of a good conductor and that of an insulator. They are fall into two classes : single…