Answer: Magnesium oxide dissolves in dilute HCl forming magnesium chloride and water; it does not react with dilute NaOH.
MgO with dilute HCl: MgO is a basic oxide. It neutralises the acid, the white powder dissolves and a colourless solution of magnesium chloride is formed:
\[\mathrm{MgO + 2HCl \rightarrow MgCl_2 + H_2O}\]
This is a neutralisation reaction (basic oxide + acid \(\rightarrow\) salt + water). Magnesium chloride is the salt formed; it is the MgO that neutralises the acid.
MgO with dilute NaOH: No change is seen; the white powder stays undissolved. Both MgO and NaOH are basic, so there is no acid–base reaction between them.
This shows that MgO is a basic oxide (unlike ZnO, which reacts with both acid and base and is amphoteric).