Text book may define demerit goods in terms of costs but here you are asked to apply your knowledge.
A and B are technically correct but the Q asks for the most likely answer.
I would go for B because it makes more sense in an application. usually we think of DGs in terms of consumption and not production because of the application.
Eg) normally Govs want to discourage the consumption of DGs., so they apply an indirect tax based on consumption - they more you smoke the more you pay.
This of course is predicated upon the downward sloping PB curve , as price drops so consumption rises. Naturally this curve is above the SB curve reflecting fact that PB > SB hence a demerit.
Therefore with application in mind B is the best illustration of a DG
But yes Q could be better framed.