The correct option is D Al2O3
Al2O3 can act as either an acid or a base in a reaction to produce salt. Hence, it is called as an amphoteric oxide.
With acid:
Al2O3+6HCl→2AlCl3+3H2O
With base:
Al2O3+2NaOH+3H2O→2NaAl(OH)4
MgO is basic in nature.
P2O5 and SO3 are acidic in nature.