I want to know why you did that
A
Correct answer
Explanation
'I want to know why you did that' is a statement expressing a desire or demand, not a direct question. It's declarative even though it refers to a question topic, so it takes a period. Direct questions like 'Why did you do that?' would take a question mark.