1. Who made the cake?

2. By whom was the cake made?
3. Whom was the cake made by?
(Which one is the passive voce sentence of #1?)

4. What made you angry?
5. By what were you made angry?

6. Who bought the pen?
7. By whom was the pen bought?

(Is each pair grammatical? Is each odd number grammatical?)

#2 is the passive of #1.

The other two pairs are worded fine. Nice job.

1. The cake was made by a very talented baker.

2. The cake was made by a very talented baker.
3. By whom was the cake made? (This is the passive voice sentence of #1.)

4. Your terrible jokes made me angry.
5. I was made angry by your terrible jokes.

6. I bought the pen.
7. The pen was bought by me.

The pairs are grammatical. The odd-numbered sentences are also grammatical.

1. The cake was made by someone. (This is the passive voice sentence of #1)

2. The cake was made by someone.
3. By whom was the cake made?

4. Something made you angry.
5. You were made angry by something.

6. Someone bought the pen.
7. The pen was bought by someone.

All the sentences in each pair are grammatical. Additionally, all the odd-numbered sentences are grammatical.

1. The active voice sentence in this case would be "Who made the cake?"

To transform it into the passive voice, you need to switch the subject and object and use the appropriate form of the verb "to be" plus the past participle of the verb "make." Therefore, the passive voice sentence would be "The cake was made by whom?"

2. "By whom was the cake made?" is the passive voice sentence of the original active voice sentence "Who made the cake?"

3. "Whom was the cake made by?" is also a passive voice sentence of the original active voice sentence "Who made the cake?" However, it is more common to use "whom" in more formal or traditional contexts, and "by whom" is considered more correct.

4. "What made you angry?" is an active voice sentence.

5. "By what were you made angry?" is the passive voice sentence of the original active voice sentence "What made you angry?"

6. "Who bought the pen?" is an active voice sentence.

7. "By whom was the pen bought?" is the passive voice sentence of the original active voice sentence "Who bought the pen?"

Each pair is grammatically correct. Odd number sentences are in active voice while even number sentences are in passive voice. Both forms are valid grammatical constructions, but their usage depends on the specific context and emphasis desired.