The correct option is D (P) is forward biased and (Q) is reverse biased
In forward bias condition, the positive terminal of battery is connected to the p-type and the negative terminal of battery is connected to the n-type.
Here, in first figure, p-type is at +8V and n-type is at 2V i.e. p-type is more positive than n-type.
And in second figure, p-type is at −8V and n-type is at −2V i.e. p-type is more negative than n-type.
Hence, (P) is forward biased and (Q) is reverse biased.