Hello
I have a question, which passive sentence is preferable and why, are they both correct and used in English?
Who was this report written by?
By whom was this report written?
thank you for your help
Neither; just say:
Who wrote this report?
If you want to use the passive, both are correct. The second is very formal. You are far more likely to hear the first.