Who painted it:

Who painted it:

Explanation

Active voice: Who

Passive voice: By whom

Active: Who painted it?

Passive: By whom was it painted?