(d) Both 2 and 4
Explanation –
The reactivity of these metals with dilute HCl depends on their position in the activity series:
Copper lies below hydrogen in the activity series, so it does not react with dilute HCl. Hence, no gas is given off — observation (1) is incorrect.
Iron is above hydrogen in the activity series, hence it reacts with dilute HCl liberating hydrogen gas — observation (2) is correct.
\mathrm{Fe + 2HCl \rightarrow FeCl_2 + H_2 \uparrow}
Magnesium is highly reactive and reacts vigorously with dilute HCl liberating hydrogen gas — observation (3) is incorrect.
\mathrm{Mg + 2HCl \rightarrow MgCl_2 + H_2 \uparrow}
Zinc is above hydrogen in the activity series and reacts with dilute HCl liberating hydrogen gas — observation (4) is correct.
\mathrm{Zn + 2HCl \rightarrow ZnCl_2 + H_2 \uparrow}
Hence, observations 2 and 4 are correct.