<p>(a) Describe briefly, with the help of a diagram, the role of the two important processes involved in the formation of a p-n junction.&nbsp;</p>

<p>(b) Name the device which is used as a voltage-regulator. Draw the necessary circuit diagram and explain its working.</p>