(a)from inside to p-side
(b)from p-side to n-side
(c)from n-side to p-side if junction is forward biased
(d) from n-side to n-side if junction is reversed biased