Okay, the spectra cannot correspond with structure 2, because it doesn't have a double bond nor 4 because it would be shifted to lower frequencies. Allyl ester 3 is spectrum B because the double bond is isolated from the carbonyl group. The carbonyl is like an aliphatic ester. This leaves 1 and A. The carbonyl of an acid chloride is shifted to higher frequency because of the electron withdrawing effect of the chlorine. A nitrogen might be expected to also shift the carbonyl group to higher frequency, however the non-bonded electrons can be donated to the carbonyl group. This shifts the carbonyl frequency lower. This donation can be seen in the NMR spectra by a reduced rotation about the C-N bond and a compound like DMF will show two methyl peaks.
This brings us to oxygen. Will the non-bonded electrons shift the carbonyl group to lower frequencies as the nitrogen or to higher frequencies as a chlorine? In regular esters, the effects seem to nearly cancel each other and an ester frequency is quite similar to a ketone. If a C=O is attached to the oxygen, the carbonyl will shift to higher frequencies (look up an anhydride). Although a C=C is not as withdrawing as a carbonyl group, it is withdrawing none the less. You may check pKa tables to realize this effect. The vinyl ester, 1, corresponds with spectrum A.