Answer: C
The compound is pentan-2-one. Aldehydes: pentanal, 2-methylbutanal, 3-methylbutanal, 2,2-dimethylpropanal (4). Ketones: pentan-2-one, pentan-3-one, 3-methylbutan-2-one (3). Total 7 (checked by computer enumeration from the three C5 skeletons).