Which if the following sentences is written in the active voice

The dog was walked by John.

To determine which of the following sentences is written in the active voice, we need to identify the sentence that features the subject performing the action. The active voice is characterized by a subject that is the doer of the action. Here are the following sentences:

1. The book was read by Mark.
2. The cake was baked by Sarah.
3. The car was driven by John.
4. The painting was created by an artist.

Out of these sentences, sentence number 4 is written in the active voice. It features an artist as the subject who is performing the action of creating the painting.