(i) It is a nucleophilic addition reaction, in which CN– acts as a nucleophile. CH3CHO undergoes nucleophilic addition reactions faster than CH3COCH3 as in CH3COCH3 there are two electron releasing methyl groups attached to the carbonyl carbon that hinders the approach of nucleophile to carbonyl carbon and reduce the electrophilicity of the carbonyl group while in CH3CHO, there is only one methyl group attached to carbonyl carbon.
(ii) Semicarbazide has the following resonance structures arising due to the electron withdrawing nature of the O atom.

Lone pairs of N-1 and N-2 are involved in conjugation with
group while that of N-3 is not involved in resonance thus, it is involved in the formation of semicarbazone.