In the figure given below, assuming the diodes to be ideal,
            

1. D1 is forward biased and D2 is revers-biased and hence current flows from A to B.
2. D2 is forward biased and D1 is reverse-biased and hence no current flows from B to A and vice-versa.
3. D1 and D2 are both forward-biased and hence current flows from A to B.
4. D1 and D2 are both reverse-biased and hence no current flows from A to B and vice-versa.

(b) Hint: Biasing of the junction depends on the potential difference connected through its ends.
Step 1: Find the biasing of junction Dand D2.
In the given circuit, the p-side of the p-n junction D1 is connected to lower voltage and the n-side of D1 to higher voltage.
Thus D1 is reverse biased.
The p-side of p-n junction D2 is at higher potential and the n-side of D2 is at lower potential. Therefore, D2 is forward biased.
Step 2: Find the direction of the current.
Hence, the current flows through junction B to A.