The compound on dehydrogenation gives a ketone. The original compound is :
On Catalytic hydrogenation primary alcohols give aldehydes, secondary alcohols give ketones and tertiary alcohols give an alkene.
Hence the correct option is B.