Answer: D
The compound is but-3-enenitrile. The nitrile carbon is C1 and is counted in the chain, so the chain is four carbons with the double bond at C3. Treating CN as a cyano prefix (1-cyanoprop-2-ene) ignores the fact that nitrile is the principal group.