Dear student,
the diode has special property that it conduct only when battery positive terminal connected with p . This is known as forward biased . If negative terminal of battery connected with p then diode will not conduct . This is known as reverse biased . This is the property of diode that other device like resistance doesn't have