Identify the major products A and B respectively in the following set of reactions.

Key idea: A alcohol dehydrates with conc. by E1 to give the most substituted alkene (Saytzeff). With acetyl chloride/pyridine, the O–H is acetylated to an ester.
Answer: (D)
Tagged Properties and reactions of alcohols. Machine-assigned, so read it as a strong shortlist rather than a verdict.