A. Who was she taught such things by?
B. She was taught such things by who?
C. By whom she was taught such things?
D. By whom was she taught such things?
Given sentence is in simple past tense and it is in active voice.
Rule :
Subject + (was / were) + V3 + Optional Agents.